From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 436 invoked from network); 5 Jul 2005 19:15:20 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by ns1.primenet.com.au with SMTP; 5 Jul 2005 19:15:20 -0000 Received: (qmail 18213 invoked from network); 5 Jul 2005 19:15:13 -0000 Received: from sunsite.dk (130.225.247.90) by a.mx.sunsite.dk with SMTP; 5 Jul 2005 19:15:12 -0000 Received: (qmail 1132 invoked by alias); 5 Jul 2005 19:15:04 -0000 Mailing-List: contact zsh-users-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 9039 Received: (qmail 1123 invoked from network); 5 Jul 2005 19:15:04 -0000 Received: from news.dotsrc.org (HELO a.mx.sunsite.dk) (130.225.247.88) by sunsite.dk with SMTP; 5 Jul 2005 19:15:04 -0000 Received: (qmail 17107 invoked from network); 5 Jul 2005 19:15:04 -0000 Received: from mxfep02.bredband.com (195.54.107.73) by a.mx.sunsite.dk with SMTP; 5 Jul 2005 19:14:59 -0000 Received: from puritan.pnetwork ([213.112.43.228] [213.112.43.228]) by mxfep02.bredband.com with ESMTP id <20050705191459.CXHT21194.mxfep02.bredband.com@puritan.pnetwork> for ; Tue, 5 Jul 2005 21:14:59 +0200 Received: by puritan.pnetwork (Postfix, from userid 1000) id C5FBBADFEA; Tue, 5 Jul 2005 21:14:58 +0200 (CEST) Date: Tue, 5 Jul 2005 21:14:58 +0200 From: Nikolai Weibull To: zsh-users Subject: Re: Adding a prefix to certain filename completions Message-ID: <20050705191458.GC5362@puritan.pnetwork> Mail-Followup-To: zsh-users References: <20050704193711.GF6330@puritan.pnetwork> <1050705170157.ZM13396@candle.brasslantern.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1050705170157.ZM13396@candle.brasslantern.com> User-Agent: Mutt/1.5.8i X-Spam-Checker-Version: SpamAssassin 3.0.2 on a.mx.sunsite.dk X-Spam-Level: X-Spam-Status: No, score=-2.6 required=6.0 tests=BAYES_00 autolearn=ham version=3.0.2 X-Spam-Hits: -2.6 Bart Schaefer wrote: > On Jul 4, 9:37pm, Nikolai Weibull wrote: > > Vim has issues with files that begin with a + (or two +s for that > > matter), so I'd like to add a ./ prefix to such files when > > completing. > YOu can get most of the way there with this: > > zstyle -e ':completion:*:vim:*' fake-files 'reply=("$PWD:$(print ./+*)")' > zstyle ':completion:*:vim:*' matcher 'b:+=./+' > > However, all that does is offer the ./+* as alternatives, it doesn't > remove the originals. The trouble is that file completion is > sensitive to directory separators, so as soon as you introduce the > slash, the rules begin to apply to the stuff on the right of the slash > rather than to the entire string. Yeah, no...that works, but it wasn't great; damn. Anyway, thank you all for your suggestions, nikolai -- Nikolai Weibull: now available free of charge at http://bitwi.se/! Born in Chicago, IL USA; currently residing in Gothenburg, Sweden. main(){printf(&linux["\021%six\012\0"],(linux)["have"]+"fun"-97);}