zsh-users
 help / color / mirror / code / Atom feed
* Matthias Kopfermann: Re: coloring of --help completion possible?
@ 2000-07-04 17:17 Peter Stephenson
  2000-07-05  4:52 ` Bart Schaefer
  0 siblings, 1 reply; 3+ messages in thread
From: Peter Stephenson @ 2000-07-04 17:17 UTC (permalink / raw)
  To: Zsh users list

I'm sure Someone knows about this.

------- Forwarded Message
From: Matthias Kopfermann <kopfermann@trio-hittfeld.de>
Subject: Re: coloring of --help completion possible?

On Wed, Jun 28, 2000 at 02:47:15PM +0100, Peter Stephenson wrote:
> 
> Sounds like you should take a look at
> 
> http://sunsite.auc.dk/zsh/Guide/zshguide06.html

now that i took a look I am still well behind the idea of
coloring something where i did 
`compdef _use_lo x command_with_--help.'

I thought that looking for a group with control-x h might help
but when i used

zstyle '*:options' list-colors '=l*=34:=v*=35'

I have not been any more successful. I guess, i am deep under and
might not see the light soon %). so perhaps a last try from your
site to help me with the specific problem of coloring something,
which has got `compdef _use_lo x command_with_--help' ?

I had no problem to color with hosts like:
zstyle '*:hosts' list-colors '=l*=34:=w*=35'
but here i know that '*:hosts' is successful.

Matthias

------- End of Forwarded Message


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Matthias Kopfermann: Re: coloring of --help completion possible?
  2000-07-04 17:17 Matthias Kopfermann: Re: coloring of --help completion possible? Peter Stephenson
@ 2000-07-05  4:52 ` Bart Schaefer
  0 siblings, 0 replies; 3+ messages in thread
From: Bart Schaefer @ 2000-07-05  4:52 UTC (permalink / raw)
  To: Zsh users list

On Jul 4,  6:17pm, Peter Stephenson wrote:
}
} I'm sure Someone knows about this.

I guess I'll try to Be Someone ...

} ------- Forwarded Message
} From: Matthias Kopfermann <kopfermann@trio-hittfeld.de>
} 
} but when i used
} 
} zstyle '*:options' list-colors '=l*=34:=v*=35'
} 
} I have not been any more successful.

What other styles do you have defined?

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.

A second problem is that `l*' and `v*' won't match the name of any
option.  Options all start with `-', and only options that start with
`--' are completed by _use_lo, so you probably meant to say

    zstyle '*:options' list-colors '=--l*=34:=--v*=35'

Do either of those answers fix things up?

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: Matthias Kopfermann: Re: coloring of --help completion possible?
       [not found] <no.id>
@ 2000-07-05 10:47 ` Matthias Kopfermann
  0 siblings, 0 replies; 3+ messages in thread
From: Matthias Kopfermann @ 2000-07-05 10:47 UTC (permalink / raw)
  To: Peter Stephenson; +Cc: Zsh users list

On Wed, Jul 05, 2000 at 04:52:17AM +0000, Bart Schaefer wrote:
> On Jul 4,  6:17pm, Peter Stephenson wrote:
> }
> } I'm sure Someone knows about this.
oops, me in the subject? what an honor :)
> 
> A second problem is that `l*' and `v*' won't match the name of any
> option.  Options all start with `-', and only options that start with
> `--' are completed by _use_lo, so you probably meant to say
> 
>     zstyle '*:options' list-colors '=--l*=34:=--v*=35'
> 
> Do either of those answers fix things up?
instantly :) hurra, that is what makes free software-use such a
pleasure. it works :) fine, over and out :)

Matthias


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2000-07-05 10:51 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-07-04 17:17 Matthias Kopfermann: Re: coloring of --help completion possible? Peter Stephenson
2000-07-05  4:52 ` Bart Schaefer
     [not found] <no.id>
2000-07-05 10:47 ` Matthias Kopfermann

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).