Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH 1/2] __arguments: New completion function for _arguments.
- X-seq: zsh-workers 48611
- From: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: [PATCH 1/2] __arguments: New completion function for _arguments.
- Date: Sat, 17 Apr 2021 12:25:48 +0000
- Archived-at: <https://zsh.org/workers/48611>
- In-reply-to: <15909-1617407901.853986@YG9A.ovow.2A9B>
- List-id: <zsh-workers.zsh.org>
- References: <20210401000026.23570-1-danielsh@tarpaulin.shahaf.local2> <96182-1617281582.024669@4LIl.h-KW.lXZv> <20210401173305.GB11180@tarpaulin.shahaf.local2> <15909-1617407901.853986@YG9A.ovow.2A9B>
> > > > + _arguments -A '-*' : \
>
> > Hmm. How about «-A '-*|:|(!|)\(*'»?
>
> I'd have expected it to be the same as the pattern used at the top of
> _arguments - '-([AMO]*|[0CRSWnsw])' but that doesn't seem to work.
I tried that pattern and it seemed to DTRT, so I committed it this way.
If I overlooked something, we can change it back to «-*».
Thanks for the review.
Daniel
P.S. Already have an idea for next April; anyone interested in helping,
ping me offlist ☺
Messages sorted by:
Reverse Date,
Date,
Thread,
Author