From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 28008 invoked by alias); 29 Jan 2016 13:01:28 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 37836 Received: (qmail 4387 invoked from network); 29 Jan 2016 13:01:27 -0000 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 autolearn=ham autolearn_force=no version=3.4.0 X-AuditID: cbfec7f4-f79026d00000418a-77-56ab62a3f809 Date: Fri, 29 Jan 2016 13:01:20 +0000 From: Peter Stephenson To: Silvio Ricardo Cordeiro , zsh-workers@zsh.org Subject: Re: Zstyle command completion does not work for some executables Message-id: <20160129130120.04e4cf11@pwslap01u.europe.root.pri> In-reply-to: References: <20160129091907.GC28305@tarsus.local2> Organization: Samsung Cambridge Solution Centre X-Mailer: Claws Mail 3.7.9 (GTK+ 2.22.0; i386-redhat-linux-gnu) MIME-version: 1.0 Content-type: text/plain; charset=US-ASCII Content-transfer-encoding: 7bit X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFrrJLMWRmVeSWpSXmKPExsVy+t/xq7qLk1aHGRxcoW1x7vtZdouDzQ+Z HJg8ds66y+6x6uAHpgCmKC6blNSczLLUIn27BK6Mt82lBfu4K9a8OsLSwDiTs4uRg0NCwESi 42V8FyMnkCkmceHeerYuRi4OIYGljBLHZy9lgXAamCQ+LrgIlTnHKPHjZCMjhHOWUeL8l3es IP0sAqoSm1Y+ZwGx2QQMJaZums0IYosIeEvsPv6KCcQWFvCU2P7+HjvIal4Be4k1rVogYU6B YImuPyehZh5ilPh88ABYPb+AvsTVv5+YIO6zl5h55QzYTF4BQYkfk++B7WIW0JLYvK2JFcKW l9i85i0ziC0koC5x4+5u9gmMwrOQtMxC0jILScsCRuZVjKKppckFxUnpuYZ6xYm5xaV56XrJ +bmbGCEB/mUH4+JjVocYBTgYlXh4O9JXhQmxJpYVV+YCXczBrCTCW6e1OkyINyWxsiq1KD++ qDQntfgQozQHi5I479xd70OEBNITS1KzU1MLUotgskwcnFINjMKOy5/IfHpVVxUixx6/RnVy dsIqpymPfwetfngy/Jxb4V7NB1MF5iuYX91kvt71TY13m8rSJz/fP5r9LHKvmvicHau0+rya nVpZRctd/uc6Z05vWWjlvSaEJ8liR1vN/QeXZ7JPXrjqzT0ZoY1N3303Z86911KSnbS9R3HD 47kZWgy8V/M88pVYijMSDbWYi4oTAejHFG5sAgAA On Fri, 29 Jan 2016 10:35:43 -0200 Silvio Ricardo Cordeiro 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