m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 16:45:38 -05:00

Follow fzf-cd-widget options in fzf-cdhist-widget

Pierre Neidhardt
2017-05-25 19:27:54 +02:00
parent 72814177c7
commit 2803c7e556

@@ -22,7 +22,7 @@ function fzf-cdhist-widget -d 'cd to one of the previously visited locations'
end end
end end
set dirprev $buf set dirprev $buf
string join \n $dirprev | tac | sed 1d | eval (__fzfcmd) +m $FZF_CDHIST_OPTS | read -l result string join \n $dirprev | tac | sed 1d | eval (__fzfcmd) +m --tiebreak=index --toggle-sort=ctrl-r $FZF_CDHIST_OPTS | read -l result
[ "$result" ]; and cd $result [ "$result" ]; and cd $result
commandline -f repaint commandline -f repaint
end end