summaryrefslogtreecommitdiff
path: root/shell/key-bindings.bash
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2022-08-28 22:16:57 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2022-08-28 22:22:39 +0900
commit6fb41a202a97ad3f2437f6e5aee8890268560412 (patch)
tree5c4d9002481b8314b458bf6ef0812eac04cd40a7 /shell/key-bindings.bash
parent4bef330ce15d3ae80959415c24aba4700f5cbe35 (diff)
downloadfzf-6fb41a202a97ad3f2437f6e5aee8890268560412.tar.gz
Add --scheme=[default|path|history] option to choose scoring scheme
Close #2909 Close #2930
Diffstat (limited to 'shell/key-bindings.bash')
-rw-r--r--shell/key-bindings.bash2
1 files changed, 1 insertions, 1 deletions
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 |