diff options
author | Eli Barzilay <eli@barzilay.org> | 2024-03-17 03:06:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-03-17 16:06:48 +0900 |
commit | 88f4c16755d8fb53e55adec84d60d4aeaf1e7d91 (patch) | |
tree | 2b33afcecdf048d90969091d7830014a89825b53 /test | |
parent | c7ee071efa0f988ba9613166798afc4b300ce761 (diff) |
Make it possible to disable `Ctrl+T` / `Alt+C` / completions (#3678)
This makes it possible to skip one of the above key bindings or
completions by setting a variable to an empty string. For example,
FZF_CTRL_T_COMMAND= FZF_ALT_C_COMMAND= \
eval "$(fzf --zsh)"
Co-authored-by: Junegunn Choi <junegunn.c@gmail.com>
Diffstat (limited to 'test')
-rwxr-xr-x | test/test_go.rb | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/test/test_go.rb b/test/test_go.rb index 599d5442..97061de0 100755 --- a/test/test_go.rb +++ b/test/test_go.rb @@ -18,7 +18,6 @@ UNSETS = %w[ FZF_ALT_C_COMMAND FZF_ALT_C_OPTS FZF_CTRL_R_OPTS FZF_API_KEY - fish_history ].freeze DEFAULT_TIMEOUT = 10 @@ -67,7 +66,7 @@ class Shell end def fish - UNSETS.map { |v| v + '= ' }.join + ' FZF_DEFAULT_OPTS=--no-scrollbar fish' + "unset #{UNSETS.join(' ')}; FZF_DEFAULT_OPTS=--no-scrollbar fish_history= fish" end end end |