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

Re: Possible to use _arguments with _regex_arguments?



On Wed Sep 18, 2019 at 2:07 PM Bart Schaefer wrote:
> On Wed, Sep 18, 2019 at 1:39 PM Ronan Pigott <rpigott314@xxxxxxxxx> 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!



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