Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: show-ambiguity style



This is interesting. I had also missed it.

I ran into something that perhaps is impossible to solve. If I use the
following:

zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS}
zstyle ':completion:*' show-ambiguity $color[bg-red]

I only get EITHER the file type coloring or the ambiguity indication,
depending on the order of those two lines.

In an ideal world, I would like to have the file type coloring, AND then
something that indicates where the ambiguity starts, but this is perhaps
not possible to achieve?



On Sun, Apr 12, 2015 at 11:03 PM, Yuri D'Elia <wavexx@xxxxxxxxxx> wrote:

> On 04/12/2015 08:58 PM, Bart Schaefer wrote:
> > I don't know that it makes any difference to efficiency, but to have
> > the ambiguity disply overlaid on top of the other coloring would require
> > changes to the complist internals.
>
> My guess would be that it would probably end up being simpler and more
> robust compared to the current approach.
>
> Although I won't have time to look at this anytime soon.
> Any takers?
>
> > The main thing this is telling me is that we need more examples of how
> > to set list-colors.
>
> I'll put up some examples later next week.
>
>
>


Messages sorted by: Reverse Date, Date, Thread, Author