diff options
author | Kid <kidonng@gmail.com> | 2022-01-16 19:06:09 +0800 |
---|---|---|
committer | Kid <kidonng@gmail.com> | 2022-01-16 19:06:09 +0800 |
commit | 53c1ddf42fed6e70a9b29201d33f843394b3c98d (patch) | |
tree | bdb7562c1c80f032d8b422eb26957bab04e036c7 | |
parent | 0160a44b3e1d779a80239d546d9be7cd3ba796be (diff) |
Only bind insert mode when not using default keybindings
-rw-r--r-- | shell/navi.plugin.fish | 7 |
1 files 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 |