-
Notifications
You must be signed in to change notification settings - Fork 1.9k
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
Feature: Show list of options without having to double-tab #6924
Comments
I'm going to restate this as "tab completion should always invoke the pager". I thought this had been raised in the past but I can't find it. My gut feeling is that this would be a controversial change. There are a number of people who dislike the pager (see #2249, though that is more about the search that the pager starts), and a great deal of muscle memory in the existing behaviour. I wonder if it would be better to make this customisable (eg a binding for complete-with-pager and perhaps complete-unambiguous), though I know we're trying to avoid that. |
This is an interesting idea, I usually press tab twice in this scenario. I have implemented this in krobelus@9117c0d, it feels fresh and non-intrusive. However, I don't know why it has always been like this (also in other shells). Possibly to avoid needlessly cluttering the screen, but luckily fish handles this situation gracefully by only showing four lines when Tab is pressed for the first time. |
You have far more experience with fish and what users feel controversial than I do. But my own gut feeling would be to default to this new behavior. Reason I am saying so is because I feel that many users that move to fish do it for all the convenience and time-saving features. It makes you feel more productive. So defaulting to this means you would work faster (even how minor it might be). One less tab. |
Well, perhaps we can merge it, try it out ourselves, and ask for feedback on the fish-users mailing list? |
Good idea, I just sent out a mail. Merged, thanks for filing! |
Definitely notable! |
OK, I just tried this and I love it. |
Awesome 🥂 |
fish 3.1.0
Ubuntu 16.04.6
xterm-256color
Let's say you have three files such as
.bashrc
,.bash_history
and.bash_logout
. I believe there is an unnecessary tab that could be removed for autocompletion of these. Here is an example.vi .b
then do a tab, this will show:vi .bashrc
(wherebash
is highlighted andrc
is greyed out).bashrc
,.bash_history
and.bash_logout
below the prompt.Unless I am missing something, I am thinking that step 3) is unnecessary and that the tab in 1) should directly do both 2) and 3).
The text was updated successfully, but these errors were encountered: