zsh-workers
 help / color / mirror / code / Atom feed
* Re: coloring of --help completion possible?
@ 2000-07-05 11:03 Sven Wischnowsky
  0 siblings, 0 replies; only message in thread
From: Sven Wischnowsky @ 2000-07-05 11:03 UTC (permalink / raw)
  To: zsh-workers


[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@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2000-07-05 11:03 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-05 11:03 coloring of --help completion possible? Sven Wischnowsky

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).