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

Re: completion with separator



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