mirror of
https://github.com/denisidoro/navi
synced 2024-11-21 19:13:07 +00:00
Notes
Notes
This commit is contained in:
parent
a5d295f828
commit
487417574d
1 changed files with 10 additions and 0 deletions
|
@ -16,6 +16,16 @@ function navi-widget -d "Show cheat sheets"
|
||||||
commandline -f repaint
|
commandline -f repaint
|
||||||
end
|
end
|
||||||
|
|
||||||
|
function smart_replace
|
||||||
|
#cli_buffer = commandline -
|
||||||
|
# split at last | left/right str
|
||||||
|
# set $user_input
|
||||||
|
# if query = answer : call Navi-widget
|
||||||
|
# else smart_replace :
|
||||||
|
# set output (navi --print --best-match --query $user_input)
|
||||||
|
# replace userinput string in clibuff or left string += output
|
||||||
|
# commandline append repaint
|
||||||
|
|
||||||
bind \cg navi-widget
|
bind \cg navi-widget
|
||||||
if bind -M insert > /dev/null 2>&1
|
if bind -M insert > /dev/null 2>&1
|
||||||
bind -M insert \cg navi-widget
|
bind -M insert \cg navi-widget
|
||||||
|
|
Loading…
Reference in a new issue