junegunn / fzf

:cherry_blossom: A command-line fuzzy finder
https://junegunn.github.io/fzf/
MIT License
63.18k stars 2.37k forks source link

split up "normal completion" and "fuzzy completion integration" #3033

Open laalsaas opened 1 year ago

laalsaas commented 1 year ago

Info

Problem / Steps to reproduce

I think it would be good to split up the completion.bash file, and differentiate between the regular tab completion of options to fzf, which can be installed inside the normal bash completion directory like any completion script on the one hand, and the fuzzy completions of every other command, using fzf to display the possibilities on the other hand.

This enables users to opt for not using the fzf fuzzy completion for commands, but they can still get proper completion of fzf options. It also makes the packaging process easier, or at least more standardized.

I think the same thing also goes for zsh, but i haven't checked.

junegunn commented 1 year ago

The completion for fzf itself is only provided for bash and it hasn't been maintained for quite a while. I may decide to remove it in the future.