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 11:52:58 -0700 [thread overview]
Message-ID: <170417115258.ZM24732@torch.brasslantern.com> (raw)
In-Reply-To: <28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de>
On Apr 17, 7:02pm, apfelsinenhain@gmx.de wrote:
}
} I wanted to have a different colour for the per-match descriptions in
} the menu list, but I can't get it to work in all cases.
}
} > zstyle ':completion:*' list-separator "XX"
} > zstyle ':completion:*:default' list-colors '=XX*=31'
[...]
} - `a -<tab>` WILL show color
} - `a --<tab>` will NOT show color
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'
which does work for both cases. Something about having both --first
and -f as matches is causing the "display string" against which the
pattern is compared to start only after the two columns of matches,
whereas when there is only a single column of matches each full line
becomes one "display string".
next prev parent reply other threads:[~2017-04-17 18:52 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 [this message]
2017-04-17 20:12 ` Bart Schaefer
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=170417115258.ZM24732@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).