From: "Nadav Har'El" <nyh@math.technion.ac.il>
To: Sven Wischnowsky <wischnow@informatik.hu-berlin.de>
Cc: zsh-workers@sunsite.dk
Subject: Re: ignore-line style
Date: Mon, 15 Oct 2001 17:12:45 +0200 [thread overview]
Message-ID: <20011015171245.B15888@leeor.math.technion.ac.il> (raw)
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
> 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<tab>
> > 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.
next prev parent reply other threads:[~2001-10-15 15:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-10-09 15:52 Oliver Kiddle
2001-10-15 14:03 ` Sven Wischnowsky
2001-10-15 15:12 ` Nadav Har'El [this message]
2001-10-17 13:27 ` Sven Wischnowsky
2001-10-18 16:32 ` Oliver Kiddle
2001-10-19 9:29 ` Sven Wischnowsky
2001-10-19 16:50 ` Oliver Kiddle
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20011015171245.B15888@leeor.math.technion.ac.il \
--to=nyh@math.technion.ac.il \
--cc=wischnow@informatik.hu-berlin.de \
--cc=zsh-workers@sunsite.dk \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).