summaryrefslogtreecommitdiff
path: root/shell/key-bindings.zsh
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.zsh
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.zsh')
-rw-r--r--shell/key-bindings.zsh2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/key-bindings.zsh b/shell/key-bindings.zsh
index b0b81f26..47ef17a7 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -98,7 +98,7 @@ fzf-history-widget() {
local selected num
setopt localoptions noglobsubst noposixbuiltins pipefail no_aliases 2> /dev/null
selected=( $(fc -rl 1 | awk '{ cmd=$0; sub(/^[ \t]*[0-9]+\**[ \t]+/, "", cmd); if (!seen[cmd]++) print $0 }' |
- FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --tiebreak=index --bind=ctrl-r:toggle-sort,ctrl-z:ignore $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
+ FZF_DEFAULT_OPTS="--height ${FZF_TMUX_HEIGHT:-40%} $FZF_DEFAULT_OPTS -n2..,.. --scheme=history --bind=ctrl-r:toggle-sort,ctrl-z:ignore $FZF_CTRL_R_OPTS --query=${(qqq)LBUFFER} +m" $(__fzfcmd)) )
local ret=$?
if [ -n "$selected" ]; then
num=$selected[1]