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 --- README.md | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 312a99c3..d0dd5c05 100644 --- a/README.md +++ b/README.md @@ -218,13 +218,13 @@ Add the following line to your shell configuration file. > (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: +> You can disable CTRL-T, CTRL-R, or ALT-C bindings by setting the +> corresponding `*_COMMAND` variable to an empty string when sourcing the +> script. For example, to disable CTRL-R and ALT-C: > -> * bash: `FZF_ALT_C_COMMAND= eval "$(fzf --bash)"` -> * zsh: `FZF_ALT_C_COMMAND= source <(fzf --zsh)` -> * fish: `fzf --fish | FZF_ALT_C_COMMAND= source` +> * bash: `FZF_CTRL_R_COMMAND= FZF_ALT_C_COMMAND= eval "$(fzf --bash)"` +> * zsh: `FZF_CTRL_R_COMMAND= FZF_ALT_C_COMMAND= source <(fzf --zsh)` +> * fish: `fzf --fish | FZF_CTRL_R_COMMAND= FZF_ALT_C_COMMAND= source` > > Setting the variables after sourcing the script will have no effect. @@ -534,6 +534,9 @@ the following key bindings in bash, zsh, and fish. --color header:italic --header 'Press CTRL-Y to copy command into clipboard'" ``` + - Can be disabled by setting `FZF_CTRL_R_COMMAND` to an empty string when + sourcing the script + - Custom override via a non-empty `FZF_CTRL_R_COMMAND` is not yet supported and will emit a warning - `ALT-C` - cd into the selected directory - The list is generated using `--walker dir,follow,hidden` option - Set `FZF_ALT_C_COMMAND` to override the default command -- cgit v1.2.3