diff options
| author | Kid <44045911+kidonng@users.noreply.github.com> | 2025-01-09 18:16:24 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-09 19:16:24 +0900 |
| commit | 93c029960666de2d1784f351ac37e5a74cf82e2e (patch) | |
| tree | fa53be8f8a9ef641c032589c2986f1204222b5c7 /shell/key-bindings.fish | |
| parent | 55e3c73221e1f6e4c48f2c3f7517befc7d0945cf (diff) | |
| download | fzf-93c029960666de2d1784f351ac37e5a74cf82e2e.tar.gz | |
[fish] remove defunct bind feature detection (#4165)
Diffstat (limited to 'shell/key-bindings.fish')
| -rw-r--r-- | shell/key-bindings.fish | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish index cedf3f2c..aadcffbb 100644 --- a/shell/key-bindings.fish +++ b/shell/key-bindings.fish @@ -133,14 +133,12 @@ function fzf_key_bindings bind \ec fzf-cd-widget end - if bind -M insert &> /dev/null - bind -M insert \cr fzf-history-widget - if not set -q FZF_CTRL_T_COMMAND; or test -n "$FZF_CTRL_T_COMMAND" - bind -M insert \ct fzf-file-widget - end - if not set -q FZF_ALT_C_COMMAND; or test -n "$FZF_ALT_C_COMMAND" - bind -M insert \ec fzf-cd-widget - end + bind -M insert \cr fzf-history-widget + if not set -q FZF_CTRL_T_COMMAND; or test -n "$FZF_CTRL_T_COMMAND" + bind -M insert \ct fzf-file-widget + end + if not set -q FZF_ALT_C_COMMAND; or test -n "$FZF_ALT_C_COMMAND" + bind -M insert \ec fzf-cd-widget end function __fzf_parse_commandline -d 'Parse the current command line token and return split of existing filepath, fzf query, and optional -option= prefix' |
