diff --git a/README.md b/README.md index 60698363..567271c5 100644 --- a/README.md +++ b/README.md @@ -261,6 +261,17 @@ export FZF_COMPLETION_TRIGGER='~~' export FZF_COMPLETION_OPTS='+c -x' ``` +#### Supported commands + +On bash, fuzzy completion is enabled only for a predefined set of commands +(`complete | grep _fzf` to see the list). But you can enable it for other +commands as well like follows. + +```sh +# There are also _fzf_path_completion and _fzf_dir_completion +complete -F _fzf_file_completion -o default -o bashdefault doge +``` + Usage as Vim plugin ------------------- diff --git a/shell/completion.bash b/shell/completion.bash index 60251f9e..f40e25e0 100644 --- a/shell/completion.bash +++ b/shell/completion.bash @@ -241,9 +241,9 @@ complete -o default -F _fzf_opts_completion fzf d_cmds="cd pushd rmdir" f_cmds=" awk cat diff diff3 - emacs ex file ftp g++ gcc gvim head hg java + emacs emacsclient ex file ftp g++ gcc gvim head hg java javac ld less more mvim nvim patch perl python ruby - sed sftp sort source tail tee uniq vi view vim wc" + sed sftp sort source tail tee uniq vi view vim wc xdg-open" a_cmds=" basename bunzip2 bzip2 chmod chown curl cp dirname du find git grep gunzip gzip hg jar