|
From: | Chet Ramey |
Subject: | Re: feature request: let the colour for colored-completion-prefix try some custom field in LS_COLORS first |
Date: | Fri, 8 Oct 2021 13:19:14 -0400 |
User-agent: | Mozilla/5.0 (Macintosh; Intel Mac OS X 10.15; rv:91.0) Gecko/20100101 Thunderbird/91.1.2 |
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 chet@case.edu http://tiswww.cwru.edu/~chet/
[Prev in Thread] | Current Thread | [Next in Thread] |