From cf57116eb2410139b8bd78fcb793dd84db79e28f Mon Sep 17 00:00:00 2001 From: Aloxaf Date: Wed, 25 Sep 2024 19:12:31 +0800 Subject: [PATCH] docs: update example configuration Signed-off-by: Aloxaf --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 101eb42..e43e0f7 100644 --- a/README.md +++ b/README.md @@ -106,7 +106,7 @@ A common configuration is: # disable sort when completing `git checkout` zstyle ':completion:*:git-checkout:*' sort false # set descriptions format to enable group support -# NOTE: don't use escape sequences here, fzf-tab will ignore them +# NOTE: don't use escape sequences (like '%F{red}%d%f') here, fzf-tab will ignore them zstyle ':completion:*:descriptions' format '[%d]' # set list-colors to enable filename colorizing zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} @@ -114,6 +114,9 @@ zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':completion:*' menu no # preview directory's content with eza when completing cd zstyle ':fzf-tab:complete:cd:*' fzf-preview 'eza -1 --color=always $realpath' +# custom fzf flags +# NOTE: fzf-tab does not follow FZF_DEFAULT_OPTS +zstyle ':fzf-tab:*' fzf-flags --color=fg:1,fg+:2 --bind=tab:accept # switch group using `<` and `>` zstyle ':fzf-tab:*' switch-group '<' '>' ```