Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Missing options in tmux completion
- X-seq: zsh-users 21385
- From: Keerthan JC <jckeerthan@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: Missing options in tmux completion
- Date: Tue, 15 Mar 2016 10:02:59 -0400
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to; bh=tecVcCNZ8V6jcWiBtlEf5/lv5PrXDc+joO8j4LYw2wU=; b=0bTyqgI6z+eNlwSo2xVgtaIrA2IO4MDF0Yk9g/560XlnnLAJCVt6udq6RbcLN7O92Z TzCMw39Gqw7AAm7M+GrqnoLwFBnZmbwYe12iAIaD536Laq1L9ggDsLBhlc7WUgEe/uS4 4RZkfcE8iU3w4GCA7IVdmwVkNAdTIaPjOo0ozPnwdAwiZbF3nG5sF/DHFIe4Y+8jLhx0 EPFA8JCCadocMAiF6b1o7H/Hk9vwd5DcnKHaNMpecL1RZNYrOPyxqYlLV0OVDNR4aZ6P XhNQfiANArNPURiWgJZHnglZ1gdPf7ZsoqIpde08cp/EzWhlmoe+yRIOlXypmpHrkWpp YZbA==
- In-reply-to: <87fuvrx2zy.fsf@ft.bewatermyfriend.org>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAHyxEs0ubtu4ferbL=mrY-PYAB7uRNKBBPenwfjGexkgJDDKiQ@mail.gmail.com> <87fuvrx2zy.fsf@ft.bewatermyfriend.org>
` _arguments -s : $args` does the trick. Thanks!
On Tue, Mar 15, 2016 at 9:52 AM, Frank Terbeck <ft@xxxxxxxxxxxxxxxxxxx>
wrote:
> 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 -<Tab> 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
>
--
have a nice day
-jck
Messages sorted by:
Reverse Date,
Date,
Thread,
Author