zsh-workers
 help / color / mirror / code / Atom feed
* using the description from _arguments foo:description:->state
@ 2011-09-11 15:04 Mikael Magnusson
  2011-09-11 18:10 ` Bart Schaefer
  0 siblings, 1 reply; 7+ messages in thread
From: Mikael Magnusson @ 2011-09-11 15:04 UTC (permalink / raw)
  To: zsh workers

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


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

end of thread, other threads:[~2011-09-22  4:04 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-09-11 15:04 using the description from _arguments foo:description:->state Mikael Magnusson
2011-09-11 18:10 ` Bart Schaefer
2011-09-20 15:16   ` Mikael Magnusson
2011-09-21 11:39     ` Oliver Kiddle
2011-09-21 15:50       ` Bart Schaefer
2011-09-21 17:10         ` Oliver Kiddle
2011-09-22  4:04           ` 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).