From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12451 invoked from network); 15 Oct 2001 15:14:14 -0000 Received: from unknown (HELO sunsite.dk) (130.225.247.90) by ns1.primenet.com.au with SMTP; 15 Oct 2001 15:14:14 -0000 Received: (qmail 29094 invoked by alias); 15 Oct 2001 15:14:06 -0000 Mailing-List: contact zsh-workers-help@sunsite.dk; run by ezmlm Precedence: bulk X-No-Archive: yes X-Seq: 16049 Received: (qmail 29078 invoked from network); 15 Oct 2001 15:14:04 -0000 Date: Mon, 15 Oct 2001 17:12:45 +0200 From: "Nadav Har'El" To: Sven Wischnowsky Cc: zsh-workers@sunsite.dk Subject: Re: ignore-line style Message-ID: <20011015171245.B15888@leeor.math.technion.ac.il> References: <3BC31D30.11F61508@yahoo.co.uk> <15306.60590.817177.439249@gargle.gargle.HOWL> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2i In-Reply-To: <15306.60590.817177.439249@gargle.gargle.HOWL>; from wischnow@informatik.hu-berlin.de on Mon, Oct 15, 2001 at 04:03:26PM +0200 Hebrew-Date: 28 Tishri 5762 > Oliver Kiddle wrote: > > zstyle ':completion:*:*:(cat|diff|less|rm|vi):*' ignore-line true > > > > So, filenames I've already mentioned are not offered for completion > > with these commands. This is useful but there is a problem: > > > > With diff, it is quite common to compare a file to another file with > > the same name in a different directory but this style blocks completion > > of the second file. e.g: diff file ../fi > > It needs to include the `../' in the comparison against other words on > > the line. By the way, most modern diffs (GNU, solaris, etc.) allow you to do diff file ../ as a shortcut to diff file ../file So you never actually need to complete that second file to the same basename... I do agree it's a bit weird, though. -- Nadav Har'El | Monday, Oct 15 2001, 28 Tishri 5762 nyh@math.technion.ac.il |----------------------------------------- Phone: +972-53-245868, ICQ 13349191 |A city is a large community where people http://nadav.harel.org.il |are lonesome together.