]> git.sev.monster Git - dotfiles.git/commitdiff
zsh: fix fzf options for history search
authorsev <git@sev.monster>
Fri, 18 Oct 2024 21:35:33 +0000 (16:35 -0500)
committersev <git@sev.monster>
Fri, 18 Oct 2024 21:36:03 +0000 (16:36 -0500)
turns out you can't combine them

etc/zsh/.zshrc

index b5cfaf6cd8c23a10bfc6acdff788048844dc20b7..893cac58c9b02faa60c9adc61db9f6614bbbe68b 100644 (file)
@@ -204,7 +204,7 @@ unset a k v
 # bash-style reverse-search-history (i.e. reverse-i-search)
 if [[ -v commands[fzf] ]] {
     function _history-incremental-pattern-search-fzf {
-        l=(${(f)"$(fc -li -1 0 | fzf -emn 1 +s --preview-window=hidden ${BUFFER:+-q $BUFFER})"})
+        l=(${(f)"$(fc -li -1 0 | fzf -e -m -n 1 +s --preview-window=hidden ${BUFFER:+-q $BUFFER})"})
         l=$(for x ("${l[@]}") { echo ${${=x}:3}; })
         BUFFER="$l"
     }
This page took 0.037827 seconds and 4 git commands to generate.