Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: ignore classes of files for completion on a per directory basis?
- X-seq: zsh-users 13017
- From: Peter Stephenson <pws@xxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ignore classes of files for completion on a per directory basis?
- Date: Fri, 11 Jul 2008 14:11:44 +0100
- In-reply-to: <6a42eec70807110520p14f802e3s567ece4f295d6065@xxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <6a42eec70807110520p14f802e3s567ece4f295d6065@xxxxxxxxxxxxxx>
"sam reckoner" wrote:
> this doesn't seem to work for functions like
>
> function v () { gvim $* &}
>
> Also, how do you make this completion apply only to particular
> functions? in other words, I would like attempting to complete on
> certain functions to trigger the ignore class you have setup.
The way to fiddle with it is to use ^Xh to find the context where
you're completing. For example,
% v ^Xh
tags in context :completion::complete:v::
all-files (_files _default)
Then adjust the pattern in zstyle so that it covers the style with the
tag, i.e. :completion::complete:v::all-files in this case.
--
Peter Stephenson <pws@xxxxxxx> Software Engineer
CSR PLC, Churchill House, Cambridge Business Park, Cowley Road
Cambridge, CB4 0WZ, UK Tel: +44 (0)1223 692070
Messages sorted by:
Reverse Date,
Date,
Thread,
Author