Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm
Precedence: bulk
X-No-Archive: yes
List-Id: Zsh Workers List <zsh-workers.zsh.org>
List-Post: <mailto:zsh-workers@zsh.org>
List-Help: <mailto:zsh-workers-help@zsh.org>
X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) 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.0
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
         :cc:content-type;
        bh=XEaoRh5wcqxSru3MGjWzPvsi6geXc0vszq5lZwSROYQ=;
        b=l70BnUDsXpS5EOgzP9RtNG4gfdIIINxvDe01G+X4k6CwfqW/QvPSgQHoTA/QO8c30o
         jxgNzDH9/z9yRVYJnQurbp04A3hXy4KCoJrPgadpjmeLZyikw+1joZqIrITpX7bQzKu9
         jPIApmhIVPckG3QHTU4/kWXBGHrEHpzH+Bkkb6nfiwp2hXuqbBwIMT7T1Mxp0PyZVXl+
         GKqV1c9d+7MghWMYLl9wAeQGJ70aZiHF1nuNRouGkpc/q1jhfku2c2D59uvGNX540GDm
         5i8FH3qizWmoV73pfgWWgU8sNN6RBPKJxnfAxbLh0EjFHwE23pGzrh2KgoiyoEKFxchH
         i8hw==
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:cc:content-type;
        bh=XEaoRh5wcqxSru3MGjWzPvsi6geXc0vszq5lZwSROYQ=;
        b=K+dYO/ub8okU3W4YpG4te/gQCgU2uS8pfIj00Cl2feM4+TBLO93o1EdOkf57ZUDDtO
         Nj1uObEl0xbYsu5NMYpHLK3wAevpr06Z0T16C8wbYGWwW3OatVO79pUSm34tpNCla3Vb
         cGr+vfHAtrYgVj0wBMGhyXmigxZJ8R906sT93u3I2jMTrRMwDrUWgjF4tGJ2c1moQbDU
         bVMYGflPoWq5QFYZ4wAGRqI4C1ofw1tWVKFaiEwEnBnhyuXVnrFlMHCaw1w0uxz4CAO1
         r+gI/qbAcxETWCIcXJlEfp3vVVSzs3ceN2MMRBLTbpBEH2jIbmVF+YizgbCYHEgw+AhT
         GMOA==
X-Gm-Message-State: AG10YORUkUDN15uF8bhJjW1XlKTvHqNek6/FK7QoWUqz4QB9crg74OgaSGWxFM7/Oj/QeG3Yz5oNNZSl62mL4g==
X-Received: by 10.107.15.146 with SMTP id 18mr9972915iop.196.1454073591423;
 Fri, 29 Jan 2016 05:19:51 -0800 (PST)
MIME-Version: 1.0
In-Reply-To: <20160129130120.04e4cf11@pwslap01u.europe.root.pri>
References: <CABq1aV__gsNumkqqdsnfH2sORfM9SuKo4wAgoE70i9SQ+Xu2pA@mail.gmail.com>
 <20160129091907.GC28305@tarsus.local2> <CABq1aV8Wv6bMGoodGCOX=wGmhd6zzJxJR=AZc4eA1JYRr+x4MQ@mail.gmail.com>
 <20160129130120.04e4cf11@pwslap01u.europe.root.pri>
From: Silvio Ricardo Cordeiro <silvioricardoc@gmail.com>
Date: Fri, 29 Jan 2016 11:19:12 -0200
Message-ID: <CABq1aV-VT-jJUOdfTD7K6jdSzAqaE1A6DJr1p_Xf2vc9T9MasA@mail.gmail.com>
Subject: Re: Zstyle command completion does not work for some executables
To: Peter Stephenson <p.stephenson@samsung.com>
Cc: zsh-workers@zsh.org
Content-Type: multipart/alternative; boundary=001a113ed64ae4e686052a78e367
X-Seq: zsh-workers 37837

--001a113ed64ae4e686052a78e367
Content-Type: text/plain; charset=UTF-8

OK, thank you for the pointers.

Cheers,

2016-01-29 11:01 GMT-02:00 Peter Stephenson <p.stephenson@samsung.com>:

> On Fri, 29 Jan 2016 10:35:43 -0200
> Silvio Ricardo Cordeiro <silvioricardoc@gmail.com> wrote:
> > For killall & rake, I get "testing" as a suggestion, as I expected.  For
> > the others, nothing happens (they continue trying to complete with
> > filenames, the default behavior).
>
> You're missing the point of the "command" style.  Read the docmentation
> in Standard Styles in zshcompsys in more detail.  As a summary:
>
> For some commands, as part of the way the completion system gathers
> information to complete, it needs to run the command named.  In the case
> of killall and rake, it does so to find out what processes killall knows
> about or what targets rake knows about.  So if you tell it to run a
> different command here it will do so.
>
> For the vast majority of completion contexts, it doesn't need to do
> this.  It makes up the completion based on what it's been told the
> context is.  It doesn't run an external command for this.
>
> I think what you're trying to do is add completion for a new context (a
> specific command) or modify an existing one.  The "command" style has
> got nothing at all to do with this.  Instead, you need to start much
> deeper in the documentation and learn about how to add new completions
> or modify exsting ones.
>
> Oliver's chapters in the book, www.bash2zsh.com, are a good starting
> point.
>
> Otherwise, have a glance through
>
> http://zsh.sourceforge.net/Guide/zshguide06.html#l144
>
> and in particular section 6.9.
>
> pws
>



-- 
Silvio Ricardo Cordeiro

--001a113ed64ae4e686052a78e367--

