Show how to disable a key binding

This commit is contained in:
Junegunn Choi 2024-03-17 16:18:19 +09:00
parent 9ffe951f6d
commit b4efe7aab7
No known key found for this signature in database
GPG Key ID: 254BC280FEF9C627

View File

@ -216,6 +216,22 @@ Add the following line to your shell configuration file.
> fzf 0.48.0 or above. If you have an older version of fzf, refer to the > fzf 0.48.0 or above. If you have an older version of fzf, refer to the
> package documentation for more information. (e.g. `apt show fzf`) > package documentation for more information. (e.g. `apt show fzf`)
> [!TIP]
> You can disable CTRL-T or ALT-C binding by setting `FZF_CTRL_T_COMMAND` or
> `FZF_ALT_C_COMMAND` to an empty string when sourcing the script.
> For example, to disable ALT-C binding:
> ```sh
> # bash
> FZF_ALT_C_COMMAND= eval "$(fzf --bash)"
>
> # zsh
> FZF_ALT_C_COMMAND= eval "$(fzf --zsh)"
>
> # fish
> fzf --fish | FZF_ALT_C_COMMAND= source
> ```
> Setting the variables after sourcing the script will have no effect.
### As Vim plugin ### As Vim plugin
If you use If you use