fzf-tab icon indicating copy to clipboard operation
fzf-tab copied to clipboard

[Q] How to make `fzf-tab` respect options from `FZF_DEFAULT_OPTS_FILE`?

Open kfernandez31 opened this issue 1 year ago • 0 comments

Hi, I have the following in my $FZF_DEFAULT_OPTS_FILE:

--border=double
--preview-window=border-double

And this in my .zshrc:

# -- snip --
zinit light Aloxaf/fzf-tab
zinit snippet OMZP::fzf
zstyle ':fzf-tab:complete:*' fzf-preview " [[ -d \$realpath ]] && eza $(tr -s '\n' ' ' < $EZA_DEFAULT_OPTS_FILE) -1a --color=always --ignore-glob '.DS_Store|.idea|.vscode' \$realpath || bat --style=numbers --color=always \$realpath"

The options for fzf work just fine with the regular commands such as ctrl+t, shown below:

image

However, when pressing the tab key, we can see that the preview window's border is different: image

This leaves me with the question - what should I do to make fzf-tab respect the options from their configuration file?

Thanks in advance for the response!

kfernandez31 avatar Aug 24 '24 19:08 kfernandez31