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

Re: Colon in alias appears to be breaking task compltion



On Sun, Sep 5, 2021 at 10:27 AM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> On Sun, Sep 5, 2021 at 10:16 AM Steve Dondley <s@xxxxxxxxxxx> wrote:
> > It does, however, work just find in bash.
>
> That's to a large extent irrelevant as the two systems work quite differently.

In particular, the bash completion is probably looking only at the
single word after which TAB was pressed, whereas the OMZ completion
has been written to syntax check the entire context using the
_regex_arguments mechanism.

% task add due:1h<TAB>

completes to

% task add due:1hrs

Conversely,

% task add due:1h pro<TAB>
parse failed before current word




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