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

Re: How to complete with _arguments() depending on an option and within a loop



On Wed, May 12, 2021 at 6:44 AM Philippe Proulx <eeppeliteloop@xxxxxxxxx> wrote:
>
>     $ beep --device --new <tab>
>
> Zsh offers `--device` again, because the completion script "saw" the
> `--new` word, without taking any parsing into account.

What everybody seems to forget about completion is that it's supposed
to save the user typing time, not save the user from thinkos.  If the
user is uncomprehending enough to select --device twice just because
completion offered it, it's not our job to come to the rescue.




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