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 37840
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: zsh-workers@xxxxxxx
- Subject: Re: Zstyle command completion does not work for some executables
- Date: Fri, 29 Jan 2016 09:52:39 -0800
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=from:message-id:date:in-reply-to:comments:references:to:subject :mime-version:content-type; bh=rfLoVKa7SOzYr59x+nu1/O6/LCmZ2QzHVabRWRyF/wY=; b=WeOLjyqtXe5g2AebZBTUvMdLNYFYykhGGYtYrjeXaRs8BihvNnsi4+FEKqGjOu9eRx ClzzEx4UK34djcWzoc7NO4/8JO3XbmjGOXeyHWNkiSK6PjuQIpu64Hrd7B10JNAfUpLw aN0nZfKCJtOmgMNF3x4iGRc6mSUbMTuJYLlflKM2u7EserasYddb88PYnkTCH7ZUSwcE ThcLXOYWq30gEtwRdVV4h+qV4icYj2qo2uFvcFf2NwNowq6GWx+TTggwfyoeazu83Wqs O+beZVbG6RJt5u/+TTQHcp2cjwfiPzlyEPOyq+Jtecz7fnBlVj9dniL95YJv88v40CQm gl1Q==
- In-reply-to: <CABq1aV__gsNumkqqdsnfH2sORfM9SuKo4wAgoE70i9SQ+Xu2pA@mail.gmail.com>
- 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>
[I wrote all this and then it never went out. Sending it anyway because
it adds a little bit to PWS's response.]
On Jan 28, 12:52pm, Silvio Ricardo Cordeiro wrote:
} Subject: Zstyle command completion does not work for some executables
The "command" style is implemented by the _call_program helper function.
Consequently it only works for completions that use _call_program.
Doc says:
In many places, completion functions need to call external
commands to generate the list of completions. This style can be
used to override the command that is called in some such cases.
In your examples e.g.
} > zstyle ':completion:*:*bash*:*' command 'echo testing'
The writer of the _sh completion did not feel any external command
was needed in order to generate the list of completions, so no use
of _call_program was made and the command style does not apply. For
an arbitrary command in your path, there probably isn't a specific
completion function at all, so there can't be a _call_program.
[Rest trimmed as it duplicated what PWS already said.]
Messages sorted by:
Reverse Date,
Date,
Thread,
Author