lincheney / fzf-tab-completion

Tab completion using fzf
GNU General Public License v3.0
648 stars 41 forks source link

[Request/Help] Change color of the search string #111

Open egirlcatnip opened 2 weeks ago

egirlcatnip commented 2 weeks ago

How can I change the gray color that is shown when the term i'm auto-completing is filled from the shell prompt?

Example: image

ech part of the > echo

note: I did not manually type out "ech", it got inputted as I opened the completetion.

d-enk commented 2 weeks ago
FZF_DEFAULT_OPTS="$FZF_DEFAULT_OPTS --color=prompt:#FF0000"

only for fzf-tab-completion FZF_COMPLETION_OPTS instead FZF_DEFAULT_OPTS

here more about colors

egirlcatnip commented 2 weeks ago

I'm afraid this doesn't fix it.. image

edit: it might've been not very obvious because of the image with transparency, but I meant the color of the "ech" in echo, echotc, echoti

d-enk commented 2 weeks ago

--color='fg:#FF0000,fg+:#00FF00'

egirlcatnip commented 2 weeks ago

nope.. image

d-enk commented 2 weeks ago

https://github.com/lincheney/fzf-tab-completion/blob/11122590127ab62c51dd4bbfd0d432cee30f9984/bash/fzf-bash-completion.sh#L382

need replace/remove "\x1b[37m" "\x1b[0m"

egirlcatnip commented 2 weeks ago

I'm using zsh, sorry I'm getting confused..

d-enk commented 2 weeks ago

same, remove "\x1b[37m" "\x1b[0m" or replace to other ansi color

https://github.com/lincheney/fzf-tab-completion/blob/11122590127ab62c51dd4bbfd0d432cee30f9984/zsh/fzf-zsh-completion.sh#L343-L349

egirlcatnip commented 2 weeks ago

I was able to configure it how I like it with this, thank you <3