zsh-workers
 help / color / mirror / code / Atom feed
From: Peter Stephenson <pws@ifh.de>
To: zsh-workers@math.gatech.edu (Zsh hackers list)
Subject: Re: Initial path completion option
Date: Tue, 16 Sep 1997 18:48:43 +0200	[thread overview]
Message-ID: <199709161648.SAA19306@sgi.ifh.de> (raw)
In-Reply-To: "Bruce Stephens"'s message of "Tue, 16 Sep 1997 17:32:38 MET." <199709161632.MAA08018@math.gatech.edu>

Bruce Stephens wrote:
> pws@ifh.de said:
> > I suppose ideally you should be able to specify a list of directories 
> > to -W.
> 
> I *think* that would be cool.  I'm not sure I understand much of this, but 
> would it make the existing cdpath completion semi-trivial?

Yes, it ought to do just that.  In fact, if you use standard colon-path
syntax,

compctl -/ -W $CDPATH cd

or if you use space-separated words (this is currently built into -g,
actually, though I suspect not a lot of people know that),

compctl -/ -W "$cdpath" cd

which is quite a good argument for (eventually) implementing it.
(I've oversimplified, you need a '-x "S[/][~]" -/ --' as well, since -W
hijacks everything.)

-- 
Peter Stephenson <pws@ifh.de>       Tel: +49 33762 77366
WWW:  http://www.ifh.de/~pws/       Fax: +49 33762 77413
Deutsches Elektronen-Synchrotron --- Institut fuer Hochenergiephysik Zeuthen
DESY-IfH, Platanenallee 6, 15738 Zeuthen, Germany.


      reply	other threads:[~1997-09-16 16:53 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1997-09-16 15:15 Peter Stephenson
1997-09-16 16:32 ` Bruce Stephens
1997-09-16 16:48   ` Peter Stephenson [this message]

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=199709161648.SAA19306@sgi.ifh.de \
    --to=pws@ifh.de \
    --cc=zsh-workers@math.gatech.edu \
    /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).