summaryrefslogtreecommitdiff
path: root/shell/key-bindings.zsh
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2024-05-29 20:13:41 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2024-05-29 20:13:41 +0900
commited53ef7cee216725581a8f0da0422f97cfda02f7 (patch)
tree15fcc637e9c6172c5ecf00117a36dea3e75a0109 /shell/key-bindings.zsh
parent12630b124d0c28dffb33e815d439afae5a3e5433 (diff)
downloadfzf-ed53ef7cee216725581a8f0da0422f97cfda02f7.tar.gz
[shell] Add --highlight-line to CTRL-R bindings
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 56e3ae5c..72430969 100644
--- a/shell/key-bindings.zsh
+++ b/shell/key-bindings.zsh
@@ -109,7 +109,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=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort ${FZF_CTRL_R_OPTS-} --query=${(qqq)LBUFFER} +m") \
+ FZF_DEFAULT_OPTS=$(__fzf_defaults "" "-n2..,.. --scheme=history --bind=ctrl-r:toggle-sort --highlight-line ${FZF_CTRL_R_OPTS-} --query=${(qqq)LBUFFER} +m") \
FZF_DEFAULT_OPTS_FILE='' $(__fzfcmd))"
local ret=$?
if [ -n "$selected" ]; then