-
fzf config in config.fish set -x FZF_DEFAULT_OPTS '
--cycle
--border
--height=90%
--layout=reverse
--preview-window=wrap
--marker=">"
--color=fg:#bdae93,bg:#32302f,hl:#83a598
--color=fg+:#ebdbb2,bg+:#3c3836,hl+:#83a598
--color=info:#fabd2f,prompt:#fabd2f,pointer:#8ec07c
--color=marker:#8ec07c,spinner:#8ec07c,header:#83a598
' As you can see, fzf.fish will use different colors. Is there a way to use the colors specified in config.fish? Or am I using fzf.fish in the wrong way? Anyway, thanks for the awesome work. This tool really helps a lot. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
Hi @Cokile! The color in the second screenshot is coming from fd. If you look at https://github.com/PatrickF1/fzf.fish/blob/main/functions/__fzf_search_current_dir.fish#L6, you'll see that fd is colorizing the results before piping them to fzf. You can try setting Unfortunately, I can't just remove |
Beta Was this translation helpful? Give feedback.
-
Hi @PatrickF1! Thanks for the answer. The colors are helpful for me too. The problem is that the default colors have higher contrast, which makes it hard to read for me. I've explored eval (gdircolors -c ~/path/to/my/dircolors) Pros:
|
Beta Was this translation helpful? Give feedback.
Hi @Cokile! The color in the second screenshot is coming from fd. If you look at https://github.com/PatrickF1/fzf.fish/blob/main/functions/__fzf_search_current_dir.fish#L6, you'll see that fd is colorizing the results before piping them to fzf. You can try setting
fzf_fd_opts
to do--color=never
but I think it might not work because fd doesn't allow duplicate options.Unfortunately, I can't just remove
--color=always
because it's a very helpful option for most people and I don't want people to miss out on it.