summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-03-17 16:18:19 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-03-17 16:18:19 +0900
commitb4efe7aab7e14e6f2b02daa171b369d672a25bd2 (patch)
tree6d241748cb219c883b807e6de575d38731a748d8
parent9ffe951f6d5bdb0249fb73b42e28defe0374c4e7 (diff)
Show how to disable a key binding
-rw-r--r--README.md16
1 files changed, 16 insertions, 0 deletions
diff --git a/README.md b/README.md
index 28e0e618..6ffe8bee 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