etc/config/fish/functions/__fzf_reverse_isearch.fish

6 lines
279 B
Fish
Raw Permalink Normal View History

2018-10-18 09:30:43 +00:00
function __fzf_reverse_isearch
history -z | eval (__fzfcmd) --read0 --tiebreak=index --toggle-sort=ctrl-r $FZF_DEFAULT_OPTS $FZF_REVERSE_ISEARCH_OPTS -q '(commandline)' | perl -pe 'chomp if eof' | read -lz result
and commandline -- $result
commandline -f repaint
end