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 13016
- From: "sam reckoner" <sam.reckoner@xxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: ignore classes of files for completion on a per directory basis?
- Date: Fri, 11 Jul 2008 05:20:51 -0700
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:to :subject:mime-version:content-type:content-transfer-encoding :content-disposition; bh=fgTZGtvJiEaNFtzmhQ4RPQzv9E3koKeHAuTAa5YGHH0=; b=N7Km4X4A7MTVPaWCNw4qrpPqG/NGuirzyKElD48+S7vLtWhDnPqViJKjoG658KA6LR JhzUe0nc4+r2Xm0f08OzWUUIFwi9wuz0JzXa2LwNOLM22Llbr+t70Rs5bqqX1JQ35k7P HtmWOYitMwo28FH8pRwpcdU4ZhEh5ovuGSDvw=
- Domainkey-signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:to:subject:mime-version:content-type :content-transfer-encoding:content-disposition; b=ho5D3bKVN+kU4Jtr8GPDL4sbCjIsvgJYAPKAf9T7MnKEOMDkvBK7wlN3j36E8Ro6rU Q9xk8O+2H6Sp894LElFbqcsVUeie6u42bpdXKnI+OWuBhfWQN8g/zMO9fz0d07+pu5H9 LBjsXI1vWxsPkSJYKI3q6fAYe3GDgqwyk5xWw=
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
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.
Otherwise, it works great!
Thanks again.
On Thu, Jul 10, 2008 at 12:10 PM, <zsh-users-digest-help@xxxxxxxxxx> wrote:
>
> ---------- Forwarded message ----------
> From: "sam reckoner" <sam.reckoner@xxxxxxxxx>
> To: zsh-users@xxxxxxxxxx
> Date: Wed, 9 Jul 2008 16:58:36 -0700
> Subject: ignore classes of files for completion on a per directory basis?
> I would like to setup completion to ignore a certain group of files
> (say, those with an underscore in the file names) when I am trying to
> complete when in a specific directory. What makes this tricky is that
> I may not want those same filenames (those with underscores in them)
> in a neighboring subdirectory to be ignored for completion.
>
> I know it's possible to configure completion to ignore a pattern of
> filenames globally, but how about on a per-directory basis?
>
> thanks in advance.
>
>
> ---------- Forwarded message ----------
> From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
> To: zsh-users@xxxxxxxxxx
> Date: Thu, 10 Jul 2008 20:09:56 +0100
> Subject: Re: ignore classes of files for completion on a per directory basis?
> On Wed, 9 Jul 2008 16:58:36 -0700
> "sam reckoner" <sam.reckoner@xxxxxxxxx> wrote:
>> I would like to setup completion to ignore a certain group of files
>> (say, those with an underscore in the file names) when I am trying to
>> complete when in a specific directory. What makes this tricky is that
>> I may not want those same filenames (those with underscores in them)
>> in a neighboring subdirectory to be ignored for completion.
>
> You want something along the lines of:
>
> zstyle -e ':completion:*files' ignored-patterns \
> '[[ $PWD = */Src ]] && reply=("*_*")'
>
> --
> Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
> Web page now at http://homepage.ntlworld.com/p.w.stephenson/
>
Messages sorted by:
Reverse Date,
Date,
Thread,
Author