From 0e9026b817696baed3ff48be8ecf2b6352586c7b Mon Sep 17 00:00:00 2001 From: Jacobo de Vera Date: Sat, 11 Oct 2025 17:57:31 +0100 Subject: feat: Allow disabling Ctrl-R binding in shell integration (#4535) Close #4417 --- CHANGELOG.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) (limited to 'CHANGELOG.md') diff --git a/CHANGELOG.md b/CHANGELOG.md index 61ea3a28..db5be813 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -27,6 +27,7 @@ This version introduces many new features centered around the new "raw" mode. | Enhancement | Key | `CTRL-N` | `down` -> `down-match` | | Enhancement | Key | `CTRL-P` | `up` -> `up-match` | | Enhancement | Shell | `CTRL-R` binding | Toggle raw mode with `ALT-R` | +| Enhancement | Shell | `CTRL-R` binding | Opt-out with an empty `FZF_CTRL_R_COMMAND` | ### Introducing "raw" mode @@ -231,6 +232,17 @@ As described above, `$FZF_RAW` is now exported to child processes in raw mode, indicating whether the current item is a match (`1`) or not (`0`). It is not defined when not in raw mode. +#### `$FZF_CTRL_R_COMMAND` + +You can opt-out `CTRL-R` binding from the shell integration by setting +`FZF_CTRL_R_COMMAND` to an empty string. Setting it to any other value is not +supported and will result in a warning. + +```sh +# Disable the CTRL-R binding from the shell integration +FZF_CTRL_R_COMMAND= eval "$(fzf --bash)" +``` + ### Added key support for `--bind` Pull request #3996 added support for many additional keys for `--bind` option, -- cgit v1.2.3