zsh-workers
 help / color / mirror / code / Atom feed
From: Mikael Magnusson <mikachu@gmail.com>
To: zsh workers <zsh-workers@zsh.org>
Subject: using the description from _arguments foo:description:->state
Date: Sun, 11 Sep 2011 17:04:45 +0200	[thread overview]
Message-ID: <CAHYJk3RA-o47Lwtv-5tGgzQnKz1voKz93bGvLuZdgT07hacSng@mail.gmail.com> (raw)

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


             reply	other threads:[~2011-09-11 15:05 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-09-11 15:04 Mikael Magnusson [this message]
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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=CAHYJk3RA-o47Lwtv-5tGgzQnKz1voKz93bGvLuZdgT07hacSng@mail.gmail.com \
    --to=mikachu@gmail.com \
    --cc=zsh-workers@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).