On 10/3/21 1:53 PM, Christoph Anton Mitterer wrote:
Hey.
AFAIU, the colour for the common prefix in colored-completion-prefix is
coming right now from the "so" field, that is sockets, of LS_COLORS.
Seems to be done by the:
#define C_PREFIX C_SOCK
in colors.h.
It would be nice readline tries a dedicated field first and only if
that is not set, fall back to "so".
Since LS_COLORS seems to allow adding any '*.extension=' fields, one
could use one of these, without any compatibility issues.
e.g. LS_COLORS='...:*.readline-colored-completion-prefix=02:...'
This is a pretty slick idea. Let me see what I can do.
Chet
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU [email protected] http://tiswww.cwru.edu/~chet/