From 6fb41a202a97ad3f2437f6e5aee8890268560412 Mon Sep 17 00:00:00 2001 From: Junegunn Choi Date: Sun, 28 Aug 2022 22:16:57 +0900 Subject: Add --scheme=[default|path|history] option to choose scoring scheme Close #2909 Close #2930 --- shell/key-bindings.bash | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'shell/key-bindings.bash') diff --git a/shell/key-bindings.bash b/shell/key-bindings.bash index 701cf5b0..f6797d49 100644 --- a/shell/key-bindings.bash +++ b/shell/key-bindings.bash @@ -50,7 +50,7 @@ __fzf_cd__() { __fzf_history__() { local output opts script - opts="--height ${FZF_TMUX_HEIGHT:-40%} --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m --read0" + opts="--height ${FZF_TMUX_HEIGHT:-40%} --bind=ctrl-z:ignore $FZF_DEFAULT_OPTS -n2..,.. --scheme=history --bind=ctrl-r:toggle-sort $FZF_CTRL_R_OPTS +m --read0" script='BEGIN { getc; $/ = "\n\t"; $HISTCOUNT = $ENV{last_hist} + 1 } s/^[ *]//; print $HISTCOUNT - $. . "\t$_" if !$seen{$_}++' output=$( builtin fc -lnr -2147483648 | -- cgit v1.2.3