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

Re: Color in completions



On 31 January 2016 at 18:39, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>  The fields are always in the order
>  :completion:FUNCTION:COMPLETER:COMMAND:ARGUMENT:TAG.
>
> So in your zstyle above --
>
>     Lookup context      Your pattern
>     --------------      ------------
>     completion          completion
>     FUNCTION:COMPLETER  *
>     COMMAND             zplugin
>     ARGUMENT            *
>     TAG                 argument-rest
>
> I would have expected "argument-rest" to match the ARGUMENT position
> rather than the TAG position, so:
>
>   zstyle ':completion:*:zplugin:argument-rest:*' list-colors \
>       '=(#b)(*)/(*)==1;35=1;33'

This works

> What does ctl+x h (_complete_help) show if you use that instead of tab?

tags in context :completion::complete:zplugin::
    argument-rest  (_arguments _zplugin)

Best regards,
Sebastian Gniazdowski



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