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
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user