Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: ignore classes of files for completion on a per directory basis?



"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