From b4efe7aab7e14e6f2b02daa171b369d672a25bd2 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 17 Mar 2024 16:18:19 +0900 Subject: [PATCH] Show how to disable a key binding --- README.md | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/README.md b/README.md index 28e0e61..6ffe8be 100644 --- a/README.md +++ b/README.md @@ -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 > 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 If you use