zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Daniel Shahaf <d.s@daniel.shahaf.name>
Cc: "zsh-workers@zsh.org" <zsh-workers@zsh.org>
Subject: Re: [PATCH v2] Correct completion of 'tmux new <TAB>'.
Date: Thu, 20 Jul 2017 20:12:55 -0700	[thread overview]
Message-ID: <CAH+w=7ZNhO+C33_o21ZiuDiu_c2zf4rMHSh6PdgGtCXWJ7HPpw@mail.gmail.com> (raw)
In-Reply-To: <20170720210607.16753-1-danielsh@tarpaulin.shahaf.local2>

On Thu, Jul 20, 2017 at 2:06 PM, Daniel Shahaf <d.s@daniel.shahaf.name> wrote:
> +item(tt(_cmdambivalent))(
> +Completes an external command.
> +If there is a single argument, complete the command in a single word, like tt(_cmdstring);
> +otherwise, complete the command in word-separated arguments, like tt(_precommand).
> +)

I believe I understand what this is doing, but "if there is a single
argument" isn't entirely clear.  It does NOT mean "if there is a
single positional parameter in the call to this function" (which is
how I first read it, before I actually looked at the function
definition); rather it means "if there is more than one word in
argument position on the command line".

Which in turn means this can only be used for argument-rest contexts, correct?


  reply	other threads:[~2017-07-21  3:13 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-07-20 21:06 Daniel Shahaf
2017-07-21  3:12 ` Bart Schaefer [this message]
2017-07-21 17:46   ` Daniel Shahaf
2017-07-23  7:48     ` Oliver Kiddle
2017-07-23 14:01       ` Daniel Shahaf
2017-07-25  5:57         ` Oliver Kiddle
2017-07-25 12:01           ` Daniel Shahaf

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=7ZNhO+C33_o21ZiuDiu_c2zf4rMHSh6PdgGtCXWJ7HPpw@mail.gmail.com' \
    --to=schaefer@brasslantern.com \
    --cc=d.s@daniel.shahaf.name \
    --cc=zsh-workers@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).