zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Steve Dondley <s@dondley.com>
Cc: Zsh users <zsh-users@zsh.org>
Subject: Re: Colon in alias appears to be breaking task compltion
Date: Sun, 5 Sep 2021 10:48:28 -0700	[thread overview]
Message-ID: <CAH+w=7YkQJAiiWi8iGOniy8BbpnutD=qkk041qmOD-+6BcFv5A@mail.gmail.com> (raw)
In-Reply-To: <CAH+w=7bxkhAhRnz-L5A9B=2+2KoRgPSb37FE1FGHB+su-LROBg@mail.gmail.com>

On Sun, Sep 5, 2021 at 10:27 AM Bart Schaefer <schaefer@brasslantern.com> wrote:
>
> On Sun, Sep 5, 2021 at 10:16 AM Steve Dondley <s@dondley.com> 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


  parent reply	other threads:[~2021-09-05 17:50 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-05 16:02 Steve Dondley
2021-09-05 17:16 ` Steve Dondley
2021-09-05 17:27   ` Bart Schaefer
2021-09-05 17:43     ` Bart Schaefer
2021-09-05 17:59       ` Steve Dondley
2021-09-05 17:48     ` Bart Schaefer [this message]
2021-09-05 18:03     ` Steve Dondley

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to='CAH+w=7YkQJAiiWi8iGOniy8BbpnutD=qkk041qmOD-+6BcFv5A@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=s@dondley.com \
    --cc=zsh-users@zsh.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).