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

using the description from _arguments foo:description:->state



Hi,

When you do something like this (from _zle)

    "($opts)-A[define widget alias]:old widget:->widget :new widget:->widget" \

it ends up not showing those helpful 'old widget' and 'new widget'
because ->widget does this,
_wanted -C "$context[1]" widgets expl widget compadd -k widgets && ret=0

so it just shows "widget" as the description. Is there any way to get
that description from the $state handler and pass it on to compadd?
(I'm a bit afraid to open up _arguments and see if it's passed at
all).

-- 
Mikael Magnusson



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