From e0cbf58b3c2a39535d00fbeef5f27434fa9c4814 Mon Sep 17 00:00:00 2001 From: yage Date: Thu, 10 Aug 2023 11:08:57 -0600 Subject: [PATCH] v3.3.2 ===================================================================== --- Bug Fixes ---------------------------- - when using color, display properly in fzf --- zsh/lib/utils/io.zsh | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/zsh/lib/utils/io.zsh b/zsh/lib/utils/io.zsh index 74529cc..d482663 100644 --- a/zsh/lib/utils/io.zsh +++ b/zsh/lib/utils/io.zsh @@ -128,7 +128,15 @@ FZF() { exit 1 } - local SELECTION=$(fzf -i --height=30% --layout=reverse --prompt "$1 : " ${@:2}) + local FZF_ARGS=() + + FZF_ARGS+=(-i) + FZF_ARGS+=(--ansi) + FZF_ARGS+=(--bind=ctrl-c:cancel) + FZF_ARGS+=(--height=50%) + FZF_ARGS+=(--layout=reverse) + + local SELECTION=$(fzf ${FZF_ARGS[@]} --layout=reverse --prompt "$1 : " ${@:2}) PROMPT "$1" echo $SELECTION >&2 echo $SELECTION