zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: zsh-users@zsh.org
Subject: Re: issues when coloring only descriptions in menu list
Date: Mon, 17 Apr 2017 13:12:02 -0700	[thread overview]
Message-ID: <170417131202.ZM24940@torch.brasslantern.com> (raw)
In-Reply-To: <170417115258.ZM24732@torch.brasslantern.com>

On Apr 17, 11:52am, Bart Schaefer wrote:
}
} I'm puzzled why the FIRST of those cases works, because I would expect
} you to need this:
} 
}     zstyle ':completion:*:default' list-colors '=(#b)*(XX*)=0=31'

This demonstrates what is going on:

    autoload compinit && compinit -D -u

    zstyle ':completion:*' list-separator "XX"
    zstyle ':completion:*:default' list-colors '=(#b)*(XX*)(?)==31=33;40'

    _a () {
      _arguments \
	{--first,-f}'[first should be red]' \
	'--barXXfoo[watch what happens here]' \
	'--second[second should be red]'
    }
    compdef _a a

Now try TAB after each of "a -" and "a --" and watch where the black
background appears.

I think this has something to do with padding the columns when there
is more than one match to put on the same line.


  reply	other threads:[~2017-04-17 20:11 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-17 17:02 apfelsinenhain
2017-04-17 18:05 ` Daniel Shahaf
2017-04-17 20:40   ` apfelsinenhain
2017-04-17 21:12   ` apfelsinenhain
2017-04-17 18:52 ` Bart Schaefer
2017-04-17 20:12   ` Bart Schaefer [this message]
2017-04-17 22:58     ` Bart Schaefer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=170417131202.ZM24940@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).