zsh-users
 help / color / mirror / code / Atom feed
* issues when coloring only descriptions in menu list
@ 2017-04-17 17:02 apfelsinenhain
  2017-04-17 18:05 ` Daniel Shahaf
  2017-04-17 18:52 ` Bart Schaefer
  0 siblings, 2 replies; 7+ messages in thread
From: apfelsinenhain @ 2017-04-17 17:02 UTC (permalink / raw)
  To: zsh-users

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

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

end of thread, other threads:[~2017-04-17 22:58 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-04-17 17:02 issues when coloring only descriptions in menu list 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
2017-04-17 22:58     ` Bart Schaefer

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