bug-readline
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: feature request: let the colour for colored-completion-prefix try so


From: Christoph Anton Mitterer
Subject: Re: feature request: let the colour for colored-completion-prefix try some custom field in LS_COLORS first
Date: Fri, 08 Oct 2021 19:38:29 +0200
User-agent: Evolution 3.42.0-2

On Fri, 2021-10-08 at 13:19 -0400, Chet Ramey wrote:
> This is a pretty slick idea. Let me see what I can do.

Thanks :-)

What do you think about the 2nd idea? Cause IMO that would be what one
actually wants in order to quickly see what part is the prefix, but not
be distracted by too many (and "incompatible") colours.


I guess one could have even both things in parallel, maybe something
like:

":*.readline-colored-completion-prefix=02:"
being really a escape sequence that overrides anything else (just as
now)

":*.readline-colored-completion-prefix-overlay=02:"
being a escape sequence that was just "added" to the one that comes
from colored-stats already.

So if colored-stats would e.g. return:
01;34
then the overlay could add:
22;2

resulting in a:
\e[01;34;22;2m
where the 22 reverts the 1, and then sets 2 for dim.

Or one could use the underline feature (which some new terminals allow
to be even in different colours).


Cheers,
Chris



reply via email to

[Prev in Thread] Current Thread [Next in Thread]