Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [PATCH v2] Correct completion of 'tmux new <TAB>'.
- X-seq: zsh-workers 41445
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx>
- Subject: Re: [PATCH v2] Correct completion of 'tmux new <TAB>'.
- Date: Thu, 20 Jul 2017 20:12:55 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=rLadknqNf9E4I0Yq1o+EtrmsQDnQCOdESF5SB9sU1Ns=; b=jkT7h128CfXLeFphs6lfKbqHt4C4Bg0AdwmxoNi2R0ytgx+r35hrj8HhaVEPIX3nlc HyKaoVD1rYN/FPzH4YpOr5uvaxO3LJqJsFaQs6NClmM+4h3WQHjcHsbWIlvDAZlWeEMH UI99QDsdW9A4B14QPnVHwoj8mJ9PzLA+F01eiw7fs3oD08mT0TkNledyN1sS3ann8T13 xIOOExeA1KWIGSNTeulTwY2EB4a/HeX1GTRF+jo9j3oANLDs9fICnU0c0Eg4lgjoXhT4 tErhC7ickE/OLAEkOl/n10En17BHidC/MgiAEs9rKRcO9paumh5utd0jPME1M3+imZk8 0NhQ==
- In-reply-to: <20170720210607.16753-1-danielsh@tarpaulin.shahaf.local2>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <20170720210607.16753-1-danielsh@tarpaulin.shahaf.local2>
On Thu, Jul 20, 2017 at 2:06 PM, Daniel Shahaf <d.s@xxxxxxxxxxxxxxxxxx> 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?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author