Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: coloring of --help completion possible?
- X-seq: zsh-workers 12172
- From: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: coloring of --help completion possible?
- Date: Wed, 5 Jul 2000 13:03:20 +0200 (MET DST)
- In-reply-to: "Bart Schaefer"'s message of Wed, 5 Jul 2000 04:52:17 +0000
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
[moved to workers]
Bart Schaefer wrote:
> ...
>
> For example,
>
> zstyle ':completion:*' list-colors ...
>
> is considered "more specific" than
>
> zstyle '*:options' list-colors ...
>
> so the latter style will never be used if the former is defined.
>
> Arguably this is backwards and the test for "more specific" should be
> done from right to left, but somebody can probably come up with an
> example to the contrary.
`:completion:*' is considered more specific only because there's one
more colon in it.
Hm. I hadn't thought about making later components be considered more
specific, it sounds sensible. But if combined with the existing rules
it would make it much more difficult to guess how specific a pattern
is, I think. And in the examples above, `completion' is after a colon,
too, exactly like `options'. Unless we ignore leading colons withou
anything before them.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxxxxxxxxxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author