Aloxaf / fzf-tab

Replace zsh's default completion selection menu with fzf!
MIT License
2.98k stars 90 forks source link

[FR] Preview completion #441

Open IGLADI opened 1 month ago

IGLADI commented 1 month ago

Is your feature request related to a problem? Please describe. I both want to use this plugin but be able to have a list of completions as preview (see screenshot 1) and also fill in the first completion with the tab key. With this plugin however there is no preview and if I use another preview like marlonrichert/zsh-autocomplete I can't use this plugin (tab will not have the right function and ctrl+r will use the real fzf)

Describe the solution you'd like The best solution would be that tab would complete directly if there is only 1 option, else it will show the menu (see screenshot 2), now if i do tab after typing -afzf-tab search will just start with charachter - (see screenshot 3), it should start with -a, and then if only one option remain just complete else show me the fzf menu. (and also then unbind previeus tab from marlonrichert/zsh-autocomplete, which it doesn't when I load this plugin as last for some reason)

Describe alternatives you've considered -Be able to do ctrl+r and when I have already started typing it will use this plugin, else it will let me use the standard fzf (like it currently always does) -Maybe add your own completion preview similar to marlonrichert/zsh-autocomplete. (so always show the menu until i do tab/arrows don't navigate into it) this would also be great with zstyle ':fzf-tab:complete:cd:*' preshowing dirs on cd)

Additional context image image image image ps: I'm pretty new to linux, possible that one option can be done with some config but I didn't managed to personally.