You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Let's say that if you go to your home folder and type less .zsh and then press TAB, you will be presented with a list with three options:
.zshrc
.zshenv
.zsh_hist
Every time you press TAB, it will highlight the next item, as you would expect. However, if you type the letter r, the list of suggestions will be filtered, and the only available option will be .zshrc.
In this case, when there is just one option available, I think that if you press TAB again, it would be good if .zshrc was automatically selected, since it's the only available option. But instead, nothing happens until you press ENTER, in which case the option is selected.
After checking the fzf manual, I noticed that there is a flag called --select-1 under the "Scripting" section, and its description reads "Automatically select the only match". I have tried the following configurations, with no success:
I have also tried zstyle ':fzf-tab:*' fzf-bindings 'tab:accept', but that of course removes the cycling with TAB feature (you'll have to use the arrow keys to navigate through the options).
The text was updated successfully, but these errors were encountered:
Fair enough, thanks for looking into it anyway. I wish I could help or suggest something, but I wouldn't know where to start, so please feel free to close this issue if it looks like it cannot be done.
This feature is better described with an example:
Let's say that if you go to your home folder and type
less .zsh
and then press TAB, you will be presented with a list with three options:.zshrc
.zshenv
.zsh_hist
Every time you press TAB, it will highlight the next item, as you would expect. However, if you type the letter
r
, the list of suggestions will be filtered, and the only available option will be.zshrc
.In this case, when there is just one option available, I think that if you press TAB again, it would be good if
.zshrc
was automatically selected, since it's the only available option. But instead, nothing happens until you press ENTER, in which case the option is selected.After checking the
fzf
manual, I noticed that there is a flag called--select-1
under the "Scripting" section, and its description reads "Automatically select the only match". I have tried the following configurations, with no success:I have also tried
zstyle ':fzf-tab:*' fzf-bindings 'tab:accept'
, but that of course removes the cycling with TAB feature (you'll have to use the arrow keys to navigate through the options).The text was updated successfully, but these errors were encountered: