Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Initial path completion option
- X-seq: zsh-workers 3500
- From: Peter Stephenson <pws@xxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxxx (Zsh hackers list)
- Subject: Re: Initial path completion option
- Date: Tue, 16 Sep 1997 18:48:43 +0200
- In-reply-to: "Bruce Stephens"'s message of "Tue, 16 Sep 1997 17:32:38 MET." <199709161632.MAA08018@xxxxxxxxxxxxxxx>
Bruce Stephens wrote:
> pws@xxxxxx 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@xxxxxx> 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.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author