Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: autoexpand dirs to depth n



On Sun, 15 Jul 2012 20:49:44 +0200
Eric Smith <es@xxxxxxxxxxxx> wrote:
> How do I configure completion to display all directory expansions to a depth
> of n?
> 
> Then when I identify the branch I want to expand, I want to use 
> globbing so that
> 
> when in 
> /var/www $ *oo*az<tab>
> will match something like
> /foo/bar/baz

I'm not aware of any shortcuts to having to type at least the right
number of slashes.  Once you've done that, the completion system is able
to complete the strings after the slashes at each level, but only if you
have a string to match at the start.  Getting it to guess how many slashes to
insert is tricky; the logic is already complicated when it knows where
they go.  So the best you can do here is //*oo/*az with globcomplete
enabled (and I don't know how well that works in practice; in particular
whether it completes between // is style dependent).

-- 
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/




Messages sorted by: Reverse Date, Date, Thread, Author