zsh-users
 help / color / mirror / code / Atom feed
* Completion menu highlight colour
@ 2010-10-28  8:53 David Evans
  2010-10-28  9:27 ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: David Evans @ 2010-10-28  8:53 UTC (permalink / raw)
  To: zsh-users

  This is stupidity on my part, because I it working a few days ago.

  Completion menu selection works fine using

zstyle ':completion:*' menu select=2

So, how am I supposed to alter the colour of the highlight? Simply
adding ma=... to the list-colours style seems odd (and also doesn't seem
to have any effect). But, as I said, I sorted this out before...

  Thanks!


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

* Re: Completion menu highlight colour
  2010-10-28  8:53 Completion menu highlight colour David Evans
@ 2010-10-28  9:27 ` Peter Stephenson
  2010-10-28 10:31   ` David Evans
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Stephenson @ 2010-10-28  9:27 UTC (permalink / raw)
  To: zsh-users

On Thu, 28 Oct 2010 09:53:39 +0100
David Evans <David.Evans@cl.cam.ac.uk> wrote:
>   This is stupidity on my part, because I it working a few days ago.
> 
>   Completion menu selection works fine using
> 
> zstyle ':completion:*' menu select=2
> 
> So, how am I supposed to alter the colour of the highlight? Simply
> adding ma=... to the list-colours style seems odd (and also doesn't
> seem to have any effect). But, as I said, I sorted this out before...

I think using ma is the right way, and I even managed to get it to
flash, so I turned that off again quickly.  There isn't an ma already
there?  Look at

print -l ${(z)"$(zstyle -L | grep list-colors)"} | grep ma=

(Might produce obscure results if you have the style set in multiple
contexts.)

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


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

* Re: Completion menu highlight colour
  2010-10-28  9:27 ` Peter Stephenson
@ 2010-10-28 10:31   ` David Evans
  2010-10-28 11:27     ` Peter Stephenson
  0 siblings, 1 reply; 5+ messages in thread
From: David Evans @ 2010-10-28 10:31 UTC (permalink / raw)
  To: zsh-users

On Thu, Oct 28, 2010 at 10:27:28AM +0100, Peter Stephenson wrote:
> 
> I think using ma is the right way, and I even managed to get it to
> flash, so I turned that off again quickly.  There isn't an ma already
> there?

  Ahahh--it turns out that it was a list-colours vs. list-colors issue.
I thought I read somewhere that the correct (haha :P) spelling works too
but apparently not!

  Cheers, all.


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

* Re: Completion menu highlight colour
  2010-10-28 10:31   ` David Evans
@ 2010-10-28 11:27     ` Peter Stephenson
  2010-10-28 14:50       ` David Evans
  0 siblings, 1 reply; 5+ messages in thread
From: Peter Stephenson @ 2010-10-28 11:27 UTC (permalink / raw)
  To: zsh-users

On Thu, 28 Oct 2010 11:31:11 +0100
David Evans <David.Evans@cl.cam.ac.uk> wrote:
> On Thu, Oct 28, 2010 at 10:27:28AM +0100, Peter Stephenson wrote:
> > 
> > I think using ma is the right way, and I even managed to get it to
> > flash, so I turned that off again quickly.  There isn't an ma
> > already there?
> 
>   Ahahh--it turns out that it was a list-colours vs. list-colors
> issue. I thought I read somewhere that the correct (haha :P) spelling
> works too but apparently not!

It works at the variable level --- ZLS_COLORS and ZLS_COLOURS exist ---
but that wasn't passed on to the styles.

-- 
Peter Stephenson <pws@csr.com>            Software Engineer
Tel: +44 (0)1223 692070                   Cambridge Silicon Radio Limited
Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, UK


Member of the CSR plc group of companies. CSR plc registered in England and Wales, registered number 4187346, registered office Churchill House, Cambridge Business Park, Cowley Road, Cambridge, CB4 0WZ, United Kingdom


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

* Re: Completion menu highlight colour
  2010-10-28 11:27     ` Peter Stephenson
@ 2010-10-28 14:50       ` David Evans
  0 siblings, 0 replies; 5+ messages in thread
From: David Evans @ 2010-10-28 14:50 UTC (permalink / raw)
  To: zsh-users

On Thu, Oct 28, 2010 at 12:27:44PM +0100, Peter Stephenson wrote:
> On Thu, 28 Oct 2010 11:31:11 +0100
> David Evans <David.Evans@cl.cam.ac.uk> wrote:
> >   Ahahh--it turns out that it was a list-colours vs. list-colors
> > issue. I thought I read somewhere that the correct (haha :P) spelling
> > works too but apparently not!
> 
> It works at the variable level --- ZLS_COLORS and ZLS_COLOURS exist ---
> but that wasn't passed on to the styles.
> 

  Yes, I must have read and conflated that. Doing it everywhere seems
annoying and easily inconsistent...



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

end of thread, other threads:[~2010-10-28 14:58 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-28  8:53 Completion menu highlight colour David Evans
2010-10-28  9:27 ` Peter Stephenson
2010-10-28 10:31   ` David Evans
2010-10-28 11:27     ` Peter Stephenson
2010-10-28 14:50       ` David Evans

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