From: Peter Stephenson <p.w.stephenson@ntlworld.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: autoexpand dirs to depth n
Date: Mon, 16 Jul 2012 20:28:32 +0100 [thread overview]
Message-ID: <20120716202832.5a663a6e@pws-pc.ntlworld.com> (raw)
In-Reply-To: <mailbox-6514-1342377510-915747@pepper>
On Sun, 15 Jul 2012 20:49:44 +0200
Eric Smith <es@fruitcom.com> 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@ntlworld.com>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
next prev parent reply other threads:[~2012-07-16 19:58 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-15 18:49 Eric Smith
2012-07-16 19:28 ` Peter Stephenson [this message]
2012-07-16 20:51 ` Bart Schaefer
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=20120716202832.5a663a6e@pws-pc.ntlworld.com \
--to=p.w.stephenson@ntlworld.com \
--cc=zsh-users@zsh.org \
/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).