Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion with separator
- X-seq: zsh-users 27740
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Pier Paolo Grassi <pierpaolog@xxxxxxxxx>
- Cc: Zsh-Users List <zsh-users@xxxxxxx>
- Subject: Re: completion with separator
- Date: Sat, 7 May 2022 14:44:25 -0700
- Archived-at: <https://zsh.org/users/27740>
- In-reply-to: <CAP+y1xC8fFBRR2yKTyGfeiVFTG8TyR6tZKBr=hJhXwgCUSkjnA@mail.gmail.com>
- List-id: <zsh-users.zsh.org>
- References: <CAP+y1xC3AF3XiL9tVF9_N9JZexA4GwKC-c7ZJN87W9ih_+SV5g@mail.gmail.com> <CAH+w=7YaJF2c_jqyapAhVXoZu9A22x2C6p3t4yvwjiWyVxiqJg@mail.gmail.com> <CAP+y1xCAMZdUNqrTJm03UyPwoUt1bURX-kvaQf7ii=2AxgFRkA@mail.gmail.com> <CAP+y1xDNqd2z7-dEBssxOJBeAgCymN-XAU0QTO-cMQ9T6jPd1w@mail.gmail.com> <CAP+y1xAfr=QVdERerrX3Cu0T=v1Dshda15AH2h=ithDtTxZocA@mail.gmail.com> <CAH+w=7Y1GmPev5cbZn_FAy=ihtNuDWB+FwP4Z88Uw+n8cDFe5w@mail.gmail.com> <CAP+y1xC8fFBRR2yKTyGfeiVFTG8TyR6tZKBr=hJhXwgCUSkjnA@mail.gmail.com>
On Sat, May 7, 2022 at 2:11 PM Pier Paolo Grassi <pierpaolog@xxxxxxxxx> wrote:
>
> I am trying with
>
> remove_comma=(-r '[:alnum:] \t\n\-')
> _values -O remove_comma -s , categories :message:'(aa bb cc)'
>
> but all I get for completion is
> func <tab>
> func =<cursor>
Yes, that's what I mean about it not working for simple lists of
values. It's looking for something to appear on the left of the "="
to tell it which action to select on the right.
Sadly it's also not interpreting [:alnum:] correctly.
remove_comma=(-r 'A-Za-z0-9 \t\n\-')
_values -O remove_comma -s , -S '' categories -::message:'(aa bb cc)'
works for
func -<tab>
but you need something non-empty before ::message: to start it off.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author