Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: issues when coloring only descriptions in menu list



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.



Messages sorted by: Reverse Date, Date, Thread, Author