From 50816b00c5f65a05f9fa078ca636d46f3b0d5721 Mon Sep 17 00:00:00 2001 From: sev Date: Fri, 18 Oct 2024 16:35:33 -0500 Subject: [PATCH] zsh: fix fzf options for history search turns out you can't combine them --- etc/zsh/.zshrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/etc/zsh/.zshrc b/etc/zsh/.zshrc index b5cfaf6..893cac5 100644 --- a/etc/zsh/.zshrc +++ b/etc/zsh/.zshrc @@ -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" } -- 2.47.0