From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22264 invoked by alias); 15 Mar 2016 14:03:21 -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: 21385 Received: (qmail 24837 invoked from network); 15 Mar 2016 14:03:20 -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,FREEMAIL_FROM, HTML_MESSAGE,T_DKIM_INVALID autolearn=ham autolearn_force=no version=3.4.1 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to; bh=tecVcCNZ8V6jcWiBtlEf5/lv5PrXDc+joO8j4LYw2wU=; b=cYoYQmDK44XgCSLiPCRvq1efKw/rtTloVgude4ms+eC+Y3aq65Dpt7PUCrT4VcLJdf pBhITkWE3qgw857azlYP1i58ZOjHWl4JrPbMN7TD125bacp0l/RGgtybO89RoKYrHODy /E3dVHYDLwo8ywZc4qCbzCu3dFQoqglcbfCjv7v4dckl5NJeAIA0g7zLmy3u3eMfgebf gFIKlX5rbQpOc0GHOC2lUbv8GsTMWoeJuZp9Za9ilUganzXU4j9c8Ww5x/AwBwdnIHku /YBVFJBrCeHA7FtMbS10m0rESqGq5RL+dd+GPFrhRoqKHyukTgDFyNxsqDpS0VC0GbG2 OViA== X-Gm-Message-State: AD7BkJJdKaGPvDvGWva5dHnGRySZU/VxustkK5I1+oqpca78zx+gXkS0dT9wg+EcEJlHpiBbTFf0KaPlS4Hg5g== X-Received: by 10.107.151.133 with SMTP id z127mr28808169iod.191.1458050599357; Tue, 15 Mar 2016 07:03:19 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <87fuvrx2zy.fsf@ft.bewatermyfriend.org> References: <87fuvrx2zy.fsf@ft.bewatermyfriend.org> From: Keerthan JC Date: Tue, 15 Mar 2016 10:02:59 -0400 Message-ID: Subject: Re: Missing options in tmux completion To: zsh-users@zsh.org Content-Type: multipart/alternative; boundary=001a1140f4b20a17e5052e16dc49 --001a1140f4b20a17e5052e16dc49 Content-Type: text/plain; charset=UTF-8 ` _arguments -s : $args` does the trick. Thanks! On Tue, Mar 15, 2016 at 9:52 AM, Frank Terbeck 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 - 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 --001a1140f4b20a17e5052e16dc49--