From: "Nikolai Weibull" <now@bitwi.se>
To: "Bart Schaefer" <schaefer@brasslantern.com>
Cc: "Zsh Users' List" <zsh-users@sunsite.dk>
Subject: Re: Is there a way to do an automatic list-choices after successful completion of directory name?
Date: Sun, 9 Jul 2006 20:03:59 +0200 [thread overview]
Message-ID: <dbfc82860607091103w2476723j4be1fba7453d4913@mail.gmail.com> (raw)
In-Reply-To: <060709102815.ZM10543@torch.brasslantern.com>
On 7/9/06, Bart Schaefer <schaefer@brasslantern.com> wrote:
> On Jul 9, 8:37am, Nikolai Weibull wrote:
> } Comments?
> That technique only works in combination with this (or a similar) zstyle:
>
> zstyle :completion::complete:cd:: tag-order \
> local-directories path-directories
This fixes that, and also makes it work when completing files:
_expand-or-complete-with-list-choices-after-local-directories () {
zle expand-or-complete
if [[ $_lastcomp[tags] == ' '*(directories|files)' ' && $BUFFER[-1]
== '/' ]]; then
zle list-choices
fi
}
By the way, why is there a leading and trailing space in $_lastcomp[tags]?
nikolai
next prev parent reply other threads:[~2006-07-09 18:04 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2006-07-07 18:29 Nikolai Weibull
2006-07-09 15:36 ` Nikolai Weibull
2006-07-09 17:28 ` Bart Schaefer
2006-07-09 18:03 ` Nikolai Weibull [this message]
2006-07-09 18:15 ` 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=dbfc82860607091103w2476723j4be1fba7453d4913@mail.gmail.com \
--to=now@bitwi.se \
--cc=schaefer@brasslantern.com \
--cc=zsh-users@sunsite.dk \
/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).