Replace history menu with live history search #348
Answered
by
marlonrichert
jasonvarga
asked this question in
Q&A
-
Is it possible to bind They seem pretty much the same to me, but being able to use fzf is really nice. |
Beta Was this translation helpful? Give feedback.
Answered by
marlonrichert
Oct 2, 2021
Replies: 1 comment 4 replies
-
Yes, that's possible. You'll have to write some code, but it's fairly trivial: zle -N up-line-or-search
up-line-or-search() {
if [[ $LBUFFER == *$'\n'* ]] then
zle up-line
else
zle history-incremental-search-backward -w
fi
}
…except |
Beta Was this translation helpful? Give feedback.
4 replies
Answer selected by
jasonvarga
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Yes, that's possible. You'll have to write some code, but it's fairly trivial:
…except
zsh-autocomplete
's live history search does not usefzf
in any way, shape or from. 🙂