mirror of
https://github.com/denisidoro/navi.git
synced 2024-09-18 22:07:34 +03:00
14 lines
340 B
Fish
14 lines
340 B
Fish
function navi-widget -d "Show cheat sheets"
|
|
begin
|
|
stty sane
|
|
env NAVI_USE_FZF_ALL_INPUTS=true navi --print query (commandline) | perl -pe 'chomp if eof' | read -lz result
|
|
and commandline -- $result
|
|
end
|
|
commandline -f repaint
|
|
end
|
|
|
|
bind \cg navi-widget
|
|
if bind -M insert > /dev/null 2>&1
|
|
bind -M insert \cg navi-widget
|
|
end
|