From 53c1ddf42fed6e70a9b29201d33f843394b3c98d Mon Sep 17 00:00:00 2001 From: Kid Date: Sun, 16 Jan 2022 19:06:09 +0800 Subject: [PATCH] Only bind insert mode when not using default keybindings --- shell/navi.plugin.fish | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/shell/navi.plugin.fish b/shell/navi.plugin.fish index 280a7b3..8f3a669 100644 --- a/shell/navi.plugin.fish +++ b/shell/navi.plugin.fish @@ -22,5 +22,8 @@ function _navi_smart_replace commandline -f repaint end -bind \cg _navi_smart_replace -bind -M insert \cg _navi_smart_replace +if test $fish_key_bindings = fish_default_key_bindings + bind \cg _navi_smart_replace +else + bind -M insert \cg _navi_smart_replace +end