From d0b8b09f9446de7b5ed05dc13401a06cdf2ed622 Mon Sep 17 00:00:00 2001 From: DevAtDawn <86164137+DevAtDawn@users.noreply.github.com> Date: Thu, 16 Dec 2021 05:27:13 -0700 Subject: [PATCH] keybindings \cg smart_replace --- shell/navi.plugin.fish | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/shell/navi.plugin.fish b/shell/navi.plugin.fish index 81fa875..754f8d5 100644 --- a/shell/navi.plugin.fish +++ b/shell/navi.plugin.fish @@ -24,6 +24,7 @@ function smart_replace if [ $current_process != $best_match ] echo "true" + commandline -i $best_match else echo "false" navi-widget @@ -40,8 +41,7 @@ function smart_replace # replace userinput string in clibuff or left string += output # commandline append repaint -bind \cg navi-widget +bind \cg smart_replace if bind -M insert > /dev/null 2>&1 - bind -M insert \cg navi-widget - + bind -M insert \cg smart_replace end