From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: zsh-users@zsh.org
Subject: Re: completion: _normal after argument
Date: Tue, 29 Jul 2014 09:37:48 +0200 [thread overview]
Message-ID: <27088.1406619468@thecus.kiddle.eu> (raw)
In-Reply-To: <20140728211247.09469e0d@pws-pc.ntlworld.com>
Peter Stephenson wrote:
> Supposedly you don't even need to do that, however:
> *:::message:action
> executed or evaluated. With three colons before the mes‐
> sage they are modified to refer only to the normal argu‐
> ments covered by this description.
The three colon form should be right in this case. Shouldn't even need a
state: '*:::command:_normal' should work.
> I have a feeling I've had trouble with that in the past though (and,
> obviously, no one in their senses would try to understand _arguments).
Most of the troubles come when you're trying to call _arguments again.
Message 32848 on zsh-workers is also related. It can be useful to use a
small function to print $CURRENT and $words on a different tty to
understand things, and remember that _arguments expects words to start
with a command name.
Oliver
next prev parent reply other threads:[~2014-07-29 7:43 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2014-07-28 12:16 Martin Vaeth
2014-07-28 20:12 ` Peter Stephenson
2014-07-29 2:54 ` Bart Schaefer
2014-07-29 7:37 ` Oliver Kiddle [this message]
2014-07-29 8:50 ` Martin Vaeth
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=27088.1406619468@thecus.kiddle.eu \
--to=okiddle@yahoo.co.uk \
--cc=zsh-users@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).