zsh-users
 help / color / mirror / code / Atom feed
From: Mal Graty <mal@idio.ai>
To: dana <dana@dana.is>
Cc: zsh-users@zsh.org
Subject: Re: Completion confusion around the _arguments -A flag
Date: Fri, 27 Jul 2018 18:05:53 +0100	[thread overview]
Message-ID: <CAJCae=DqQKtXeTfMsZ-HL3vUq-xdejoxFvora2ZttTGSOcx-Uw@mail.gmail.com> (raw)
In-Reply-To: <4B46A103-4424-48D6-8585-1EC273B20584@dana.is>

[-- Attachment #1: Type: text/plain, Size: 1056 bytes --]

Thanks Dana

For reference, in case it rings a bell for anyone, I'm seeing this on a
vanilla Ubuntu 18.04 install. I'll have a poke around for anything that
might be altering default behaviour though, thanks for confirming I'm
not mad :)

On 25 July 2018 at 17:36, dana <dana@dana.is> wrote:

> On 22 Jul 2018, at 10:16, Mal Graty <mal@idio.ai> wrote:
> >I have a binary (call it foo) with two, mutually exclusive, optional flags
> >(that must come first) and a required arg. The problem I'm having is that
> >when omitting both flags and using just the arg the completion tries to
> add
> >one of the flags after it. Reading the docs lead me to the -A flag,
> however
> >it doesn't seem to be preventing the flag completion despite being after
> >the first arg. I'm hoping I've just overlooked something but for the life
> >of me I can't see it.
>
> For whatever it's worth, i don't see anything obviously wrong with your
> function, and it works fine when i test it on 5.5. Maybe you have an option
> enabled that changes the behaviour, idk
>
> dana
>
>

      reply	other threads:[~2018-07-27 17:05 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <CAJCae=CUioiTBB8wc8vpzYii3_5T3VJjzqAOekKvRs=-=kVLWQ@mail.gmail.com>
2018-07-22 15:16 ` Fwd: " Mal Graty
2018-07-25 16:36   ` dana
2018-07-27 17:05     ` Mal Graty [this message]

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='CAJCae=DqQKtXeTfMsZ-HL3vUq-xdejoxFvora2ZttTGSOcx-Uw@mail.gmail.com' \
    --to=mal@idio.ai \
    --cc=dana@dana.is \
    --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).