zsh-users
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh Users <zsh-users@zsh.org>
Subject: Re: autoexpand dirs to depth n
Date: Mon, 16 Jul 2012 13:51:34 -0700	[thread overview]
Message-ID: <120716135134.ZM4515@torch.brasslantern.com> (raw)
In-Reply-To: <mailbox-6514-1342377510-915747@pepper>

On Jul 15,  8:49pm, Eric Smith wrote:
}
} How do I configure completion to display all directory expansions to a
} depth of n?

In what context?  Command position (e.g., first word on the line)?  Or
following what other input?

If the former, you'll very likely need a custom widget with its own key
binding, rather than overloading TAB.  If there's other context there
may be a way to write a custom completer to do it.

} Then when I identify the branch I want to expand

What does "identify the branch" imply?  Mechanically (e.g., in terms of
keystrokes), how do you want to "identify" it?  After you "identify" it,
does it get inserted on the command line so it becomes a prefix for the
next step?

} I want to use globbing so that

Globbing won't match directory separators in the filesystem (see PWS's
reply).  However, if you've already generated a listing of all the
possible files and directories somehow (e.g. "find ... -maxdepth n"),
you could then apply a pattern completer (such as _multi_parts) to
pick out the appropriate subset.


      parent reply	other threads:[~2012-07-16 20:51 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
2012-07-16 20:51 ` Bart Schaefer [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=120716135134.ZM4515@torch.brasslantern.com \
    --to=schaefer@brasslantern.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).