Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with scroll after <TAB><TAB> if the filename is too long #2557

Closed
simonbcn opened this issue Nov 23, 2015 · 20 comments
Closed

problem with scroll after <TAB><TAB> if the filename is too long #2557

simonbcn opened this issue Nov 23, 2015 · 20 comments
Labels
bug Something that's not working as intended
Milestone

Comments

@simonbcn
Copy link

Ubuntu 14.04 64bits
fish v2.2.0 (installed from ppa:fish-shell/release-2)
terminator 0.97

I hit TAB twice to cycle through the possibilities but it does a wrong scroll and it deletes my command:

asciicast

@pickfire
Copy link
Contributor

Try using the latest fish, the fish version that you are using have bad completion:

  • The highlight line stays when you had switched to a new one.

@simonbcn
Copy link
Author

I've compiled and installed the git version and same problem.

@pickfire
Copy link
Contributor

I cannot reproduce that.

@simonbcn
Copy link
Author

I've tested with XTerm, LXTerminal and gnome-terminal. In all of them it fails.

@pickfire
Copy link
Contributor

I use st, but I don't find any problem.

@simonbcn
Copy link
Author

Tested with st and same problem.

@pickfire
Copy link
Contributor

I can't reproduce it, I am using arch on arm architecture.

@simonbcn
Copy link
Author

PC Intel 64 bits.

@zanchey
Copy link
Member

zanchey commented Feb 7, 2016

That is strange. What is your locale set to? The output of locale may be useful.

@simonbcn
Copy link
Author

simonbcn commented Feb 8, 2016

Same problem with Arch Linux 64 bits.

$ locale
LANG=es_ES.utf8
LC_CTYPE="es_ES.utf8"
LC_NUMERIC="es_ES.utf8"
LC_TIME="es_ES.utf8"
LC_COLLATE="es_ES.utf8"
LC_MONETARY="es_ES.utf8"
LC_MESSAGES="es_ES.utf8"
LC_PAPER="es_ES.utf8"
LC_NAME="es_ES.utf8"
LC_ADDRESS="es_ES.utf8"
LC_TELEPHONE="es_ES.utf8"
LC_MEASUREMENT="es_ES.utf8"
LC_IDENTIFICATION="es_ES.utf8"
LC_ALL=

@faho
Copy link
Member

faho commented Feb 8, 2016

@simonbcn: Which completion are you having this issue with? All of them? Just a file completion? Because in the original report there's makemkvcon, which I don't know and can't find and don't know if we have a completion for, and some unusual file/directory names (lots of spaces and parens).

It's also possible that it's a purely visual issue with file completion where a single file runs longer than a line.

@faho
Copy link
Member

faho commented Feb 8, 2016

I get something like this, and as far as I can tell it is related to completion options using more than one line. @simonbcn: Does this improve if you make your terminal wider?

@simonbcn
Copy link
Author

simonbcn commented Feb 8, 2016

It fails in ttyX consoles too.
It doesn't fail always, only with certain folders and it isn't related with completion of any program.
For example:
asciicast

In this example it doesn't fail:
asciicast

@faho
Copy link
Member

faho commented Feb 8, 2016

@simonbcn: Look carefully - in your failed example, it goes over the line, because one directories' name is too long. That doesn't happen in the passing one. And I'll bet that's what triggers it.

@simonbcn
Copy link
Author

simonbcn commented Feb 8, 2016

ok, that is the bug. I change the title of this issue.

@simonbcn simonbcn changed the title weird scroll with <TAB><TAB> completion problem with scroll after <TAB><TAB> if the filename is too long Feb 8, 2016
@floam
Copy link
Member

floam commented Jul 5, 2016

Does this still happen?

@krader1961 krader1961 added bug Something that's not working as intended and removed needs more info labels Aug 5, 2016
@krader1961 krader1961 added this to the fish-future milestone Aug 5, 2016
@jusga
Copy link

jusga commented Apr 1, 2017

Steps to reproduce this independent of terminal size with fish, version 2.5.0-259-gc0de8afa:

  • Start with an empty directory and create some files:
    > touch file(seq -w 1 $LINES)
    
  • Then we need a file with a long name:
    > touch (string repeat -n $COLUMNS a)
    
  • Type any command with filename completion and hit <Tab> repeatedly.

asciicast

@faho
Copy link
Member

faho commented Sep 26, 2020

I can no longer reproduce this, closing.

@faho faho closed this as completed Sep 26, 2020
@faho faho removed this from the fish-future milestone Sep 26, 2020
@zanchey
Copy link
Member

zanchey commented Sep 26, 2020

It's broken in 3.1.2 but working in master, so I'll mark this as fixed in 3.2.0.

@zanchey zanchey added this to the fish 3.2.0 milestone Sep 26, 2020
@krobelus
Copy link
Member

Sounds like ada03d3 (Correct pager size when command line soft-wraps)

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Dec 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something that's not working as intended
Projects
None yet
Development

No branches or pull requests

8 participants