From: apfelsinenhain@gmx.de
To: zsh-users@zsh.org
Subject: issues when coloring only descriptions in menu list
Date: Mon, 17 Apr 2017 19:02:15 +0200 [thread overview]
Message-ID: <28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de> (raw)
[-- Attachment #1: Type: text/plain, Size: 894 bytes --]
Hello.
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.
- start a clean shell with `zsh -f`
- execute:
> zmodload zsh/complist
> autoload -U compinit && compinit
>
> zstyle ':completion:*' list-separator "XX"
> zstyle ':completion:*:default' list-colors '=XX*=31'
>
> _a () {
> _arguments \
> '(--first -f)'{--first,-f}'[first should be red]' \
> '--second[second should be red]'
> }
> compdef _a a
- try:
- `a -<tab>` WILL show color
- `a --<tab>` will NOT show color
This doesn't just happen when using `_arguments`. Using `_describe` and
those specific zstyle's also doesn't work.
Screenshots + more tests & examples can be found here:
https://gist.github.com/Orangenhain/c9ac6ea47f187589813b9887c300a897
Is that a bug? Am I using list-colors wrong?
Thanks.
next reply other threads:[~2017-04-17 17:15 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-04-17 17:02 apfelsinenhain [this message]
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
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=28ECE9C6-6C9F-4707-9295-790E89C16C1B@gmx.de \
--to=apfelsinenhain@gmx.de \
--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).