[Top][All Lists]

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

Re: [Bug-readline] colored-completion-prefix vs colored-stats

From: Chet Ramey
Subject: Re: [Bug-readline] colored-completion-prefix vs colored-stats
Date: Thu, 16 Jul 2015 11:38:03 -0400
User-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.10; rv:31.0) Gecko/20100101 Thunderbird/31.7.0

Hash: SHA1

On 7/13/15 1:11 AM, Mike Frysinger wrote:
> the NEWS for readline-7.0 has:
> e.  There is a new bindable variable, `colored-completion-prefix', which,
>     set, causes the common prefix of a set of possible completions to be
>     displayed in color.
> and the doc says:
>      'colored-completion-prefix'
>           If set to 'on', when listing completions, Readline displays
>           the common prefix of the set of possible completions using a
>           different color.  The color definitions are taken from the
>           value of the 'LS_COLORS' environment variable.  The default is
>           'off'.
> but my testing shows that the default is "on" ...

It's on for testing; this is a testing release.

> at any rate, when this and colored-stats are both turned on, i think the 
> resulting display is weird.  with the prefix on, i'd see something like:
>       $ /sbin/unix_<tab>
>       unix_chkpwd* unix_update*
> the "unix_" part is highlighted in light blue and the rest is not colored

> at at all.  with the prefix off, both are highlighted completely in brigh
> green.  should it be mixed instead of turning off colorization entirely
> after the completion point ?

I'll have to see.  There is some amout of either-or there: you can have
the prefix colored, or you can have the entire filename colored.  I'm not
sure that having the filename colored with two different colors is any
improvement in clarity.

- -- 
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU    address@hidden    http://cnswww.cns.cwru.edu/~chet/
Version: GnuPG v2


reply via email to

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