Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Zstyle command completion does not work for some executables
- X-seq: zsh-workers 37837
- From: Silvio Ricardo Cordeiro <silvioricardoc@xxxxxxxxx>
- To: Peter Stephenson <p.stephenson@xxxxxxxxxxx>
- Subject: Re: Zstyle command completion does not work for some executables
- Date: Fri, 29 Jan 2016 11:19:12 -0200
- Cc: zsh-workers@xxxxxxx
- 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==
- In-reply-to: <20160129130120.04e4cf11@pwslap01u.europe.root.pri>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CABq1aV__gsNumkqqdsnfH2sORfM9SuKo4wAgoE70i9SQ+Xu2pA@mail.gmail.com> <20160129091907.GC28305@tarsus.local2> <CABq1aV8Wv6bMGoodGCOX=wGmhd6zzJxJR=AZc4eA1JYRr+x4MQ@mail.gmail.com> <20160129130120.04e4cf11@pwslap01u.europe.root.pri>
OK, thank you for the pointers.
Cheers,
2016-01-29 11:01 GMT-02:00 Peter Stephenson <p.stephenson@xxxxxxxxxxx>:
> On Fri, 29 Jan 2016 10:35:43 -0200
> Silvio Ricardo Cordeiro <silvioricardoc@xxxxxxxxx> 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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author