Aloxaf / fzf-tab

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

[Q] Can tab complete to the longest common prefix, then open fzf? #402

Closed cohml closed 4 months ago

cohml commented 6 months ago

Given the following directory:

$ ls
foo1.txt
foo2.txt
bar.txt

Is it possible to modify zstyle's completion behavior such that if I enter

$ ls f<tab>

it will complete the command line to

$ ls file

and then also open fzf with all the options beginning with f, i.e.,

file1.txt
file2.txt

? Then I'd just have to enter 1 or 2 to make a selection?

This would be a very nice way to communicate what the common prefix is for all items, starting with the substring I entered.

The default behavior just opens fzf without completing the common prefix for me. This means I have to scan the options to determine the prefix, which is more work for me.

Awesome plugin btw 😄

Aloxaf commented 4 months ago

duplicate of #8