From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28006 invoked by alias); 15 Mar 2016 14:35:20 -0000 Mailing-List: contact zsh-users-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Users List List-Post: List-Help: X-Seq: 21386 Received: (qmail 27072 invoked from network); 15 Mar 2016 14:35:19 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 From: Frank Terbeck To: Keerthan JC Cc: zsh-users@zsh.org Subject: Re: Missing options in tmux completion In-Reply-To: (Keerthan JC's message of "Tue, 15 Mar 2016 09:36:18 -0400") References: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.1.50 (gnu/linux) Date: Tue, 15 Mar 2016 14:52:17 +0100 Message-ID: <87fuvrx2zy.fsf@ft.bewatermyfriend.org> MIME-Version: 1.0 Content-Type: text/plain X-Df-Sender: NDMwNDQ0 Keerthan JC wrote: > If I look at the source of _tmux: > https://github.com/zsh-users/zsh/blob/master/Completion/Unix/Command/_tmux#L628 > (and my local _tmux), the options start from -A. > > However, when I run tmux new - I only see: > -- option -- > -D -- in case of -A behave like attach-session's -d > -F -- specify format of output > -P -- print information about new session after it is created > -c -- specify working directory for the session > -d -- do not attach new session to current terminal > -n -- name the initial window > -s -- name the session > -t -- specify target session > -x -- specify width > -y -- specify height > > > Why are some options missing? -A is an option to _arguments itself. I guess, we need to separate the option lists from the options to _arguments by putting a colon in between them. So in _tmux-new-session that would be: _arguments -s : $args Would make sense to do that in all helper functions in _tmux that use _arguments. I may take a look this evening, unless someone beats me to it. Regards, Frank -- In protocol design, perfection has been reached not when there is nothing left to add, but when there is nothing left to take away. -- RFC 1925