mirror of
https://github.com/denisidoro/navi
synced 2024-11-25 13:00:20 +00:00
8f2bc5f7e7
Fixes #170 and #171
13 lines
334 B
Fish
13 lines
334 B
Fish
function navi-widget -d "Show cheat sheets"
|
|
begin
|
|
stty sane
|
|
env NAVI_USE_FZF_ALL_INPUTS=true navi --print (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
|