From: "Ronan Pigott" <rpigott314@gmail.com>
To: "Bart Schaefer" <schaefer@brasslantern.com>
Cc: "Zsh Users" <zsh-users@zsh.org>
Subject: Re: Possible to use _arguments with _regex_arguments?
Date: Wed, 18 Sep 2019 14:36:25 -0700 [thread overview]
Message-ID: <BX3GA64QB3YS.19BEI4YZLZS49@rxps> (raw)
In-Reply-To: <CAH+w=7aUALnw51_fFzDJbM-WXKNbLWM_iTBy=oXa9e2DM3zN-g@mail.gmail.com>
On Wed Sep 18, 2019 at 2:07 PM Bart Schaefer wrote:
> On Wed, Sep 18, 2019 at 1:39 PM Ronan Pigott <rpigott314@gmail.com> wrote:
> >
> > When I use '*::message:_myfunc', completion is no longer tripped up by
> > options, but _myfunc always acts as if it is completing the first word
> > for all normal arguments, as if $words was empty and CURRENT=1 even if
> > there are many normal arguments.
>
> You could probably get away with shoving a dummy command word onto the
> front of $words, but I haven't made any attempt to try it.
Brilliant! I think that was it! If I allow the regex to match any string
as the command word, I can now specify the action as '*::message:= _myfunc'
and it appears to work great! Thank you!
next prev parent reply other threads:[~2019-09-18 21:48 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2019-09-18 2:31 Ronan Pigott
2019-09-18 20:21 ` Ronan Pigott
2019-09-18 21:07 ` Bart Schaefer
2019-09-18 21:36 ` Ronan Pigott [this message]
2019-09-18 21:32 ` Oliver Kiddle
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=BX3GA64QB3YS.19BEI4YZLZS49@rxps \
--to=rpigott314@gmail.com \
--cc=schaefer@brasslantern.com \
--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).