Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Missing options in tmux completion



 `  _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