mirror of
https://github.com/denisidoro/navi
synced 2024-11-28 14:30:22 +00:00
13 lines
340 B
Fish
13 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
|