m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-17 07:43:39 -05:00

It seems the fuzzy completion doesn't have to modify the completion trigger. This seems to work as expected in zsh. You can use <TAB> for the default zsh completion, or ^T for fzf.

Shankar Kulumani
2017-06-09 15:58:20 -04:00
parent d3c15ee5d4
commit 323ecc3bdb

@@ -8,10 +8,12 @@ See https://github.com/junegunn/fzf/wiki/Configuring-shell-key-bindings#changing
Instead of using `TAB` key with a trigger sequence (`**<TAB>`), you can assign a dedicated key for fuzzy completion while retaining the default behavior of `TAB` key. Instead of using `TAB` key with a trigger sequence (`**<TAB>`), you can assign a dedicated key for fuzzy completion while retaining the default behavior of `TAB` key.
This keeps the default `**<TAB>` but also adds the ability to use `^T`.
Add the following lines *after* `source ~/.fzf.zsh` Add the following lines *after* `source ~/.fzf.zsh`
```sh ```sh
export FZF_COMPLETION_TRIGGER='' export FZF_COMPLETION_TRIGGER='**'
bindkey '^T' fzf-completion bindkey '^T' fzf-completion
bindkey '^I' $fzf_default_completion bindkey '^I' $fzf_default_completion
``` ```