From 8ae3aa932a78709dd6fcb8f27ab6f062e8fe4725 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 9 Aug 2024 14:34:53 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B=20fix(fish):=20check=20if=20fzf.fi?= =?UTF-8?q?sh=20function=20is=20available?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .config/fish/functions/fish_user_key_bindings.fish | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.config/fish/functions/fish_user_key_bindings.fish b/.config/fish/functions/fish_user_key_bindings.fish index fc7f7bd8..14952f89 100644 --- a/.config/fish/functions/fish_user_key_bindings.fish +++ b/.config/fish/functions/fish_user_key_bindings.fish @@ -5,8 +5,13 @@ function fish_user_key_bindings bind -M visual -m default y 'fish_clipboard_copy; commandline -f end-selection repaint-mode' bind yy fish_clipboard_copy bind p fish_clipboard_paste + for dir in ~/.config/fish/functions + if test -f "$dir/fzf_configure_bindings.fish" + fzf_configure_bindings --directory=\e\cf --history=\ch --variables=\e\cv + break + end + end - fzf_configure_bindings --directory=\e\cf --history=\ch --variables=\e\cv bind \e\cw rga-fzf bind \e\z cdzi