Fix completion for --exact option to fzf

These double hyphens will make the completion resolve to `----exact`
which isn't a valid option.
This commit is contained in:
Collin Styles 2021-01-09 23:54:45 -08:00 committed by Fabian Homborg
parent e8c9da100c
commit f496b07c7c

View File

@ -3,7 +3,7 @@ complete -c fzf -f
# Search mode # Search mode
complete -c fzf -l no-extended -d no-extended complete -c fzf -l no-extended -d no-extended
complete -c fzf -n 'string match "+*" -- (commandline -ct)' -a +x -d no-extended complete -c fzf -n 'string match "+*" -- (commandline -ct)' -a +x -d no-extended
complete -c fzf -s e -l --exact -d 'Enable exact-match' complete -c fzf -s e -l exact -d 'Enable exact-match'
complete -c fzf -n 'string match "+*" -- (commandline -ct)' -a +i -d 'case-sensitive match' complete -c fzf -n 'string match "+*" -- (commandline -ct)' -a +i -d 'case-sensitive match'
complete -c fzf -s i -d 'Case-insensitive match' complete -c fzf -s i -d 'Case-insensitive match'
complete -c fzf -l literal -d 'Do not normalize latin script letters for matching' complete -c fzf -l literal -d 'Do not normalize latin script letters for matching'