Aloxaf / fzf-tab

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

[BUG] Completion options are not shown when word starts with a quote #456

Open tardypad opened 2 months ago

tardypad commented 2 months ago

Describe the bug

If the word starts with a single or double quote, and there are multiple completions possible, the options are not getting displayed.

Bisected to https://github.com/Aloxaf/fzf-tab/commit/acdc37214bf2f8e4b4d86df1e179bf2e226f9e12

I can make sure:

To Reproduce

Assume you are in a directory with the following subdirectories Documents and Downloads. Documents also have itself some subdirectories.

Current text is cd 'Do or cd "Do, press Tab to complete, no completion option is getting displayed. It works fine without quotes with cd Do.

If current text is cd 'Doc (no ambiguity), Tab will correctly complete to cd 'Documents/ but a further Tab press won't show any completion option from the subdirectories. If you then type the beginning of a subdirectory (without ambiguity again), it will complete again.

Expected behavior

It should show the completion options.

Environment: