diff options
| author | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-28 22:16:57 +0900 |
|---|---|---|
| committer | Junegunn Choi <junegunn.c@gmail.com> | 2022-08-28 22:22:39 +0900 |
| commit | 6fb41a202a97ad3f2437f6e5aee8890268560412 (patch) | |
| tree | 5c4d9002481b8314b458bf6ef0812eac04cd40a7 /shell/key-bindings.bash | |
| parent | 4bef330ce15d3ae80959415c24aba4700f5cbe35 (diff) | |
| download | fzf-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.bash | 2 |
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 | |
