From 93c029960666de2d1784f351ac37e5a74cf82e2e Mon Sep 17 00:00:00 2001 From: Kid <44045911+kidonng@users.noreply.github.com> Date: Thu, 9 Jan 2025 18:16:24 +0800 Subject: [PATCH] [fish] remove defunct bind feature detection (#4165) --- shell/key-bindings.fish | 14 ++++++-------- 1 file 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'