From: Borsenkow Andrej <Andrej.Borsenkow@mow.siemens.ru>
To: martin.ebourne@arcordia.com, zsh-users@sunsite.dk
Subject: RE: Getting context sensitive glob expansions using new completion
Date: Fri, 10 Aug 2001 18:40:24 +0400 [thread overview]
Message-ID: <002301c121aa$63f51e90$21c9ca95@mow.siemens.ru> (raw)
In-Reply-To: <OFA283F88D.853C8B12-ON80256AA4.004C4A5B@uk.jpmorgan.com>
>
> completer
> :completion:* _expand _complete _ignored _approximate _prefix
> glob
> :completion:*:expand:* 1
> tag-order
> :completion:*:expand:* all-expansions expansions original
>
> I also have menu completion switched off at all times (apart from
> _approximate).
>
> So then when I type eg.
> ls *<tab>
> the * is expanded immediately into a full list of files (by _expand,
tab
> being mapped to complete-word).
>
> This is what I want for ls. However, in general I would like the *
> expansion to be the list of things valid at the point rather than
always a
> list of files, which is what I currently get.
>
That is what _match is for. I personally find unconditional _expand on
every TAB bad idea - you always have ^Xe (or ^XE) for that.
zstyle ':completion:*' completer _oldlist _complete _match
_oldlist makes sure that you are using original expansions when
continuing completion (else second TAB may complete too much).
-andrej
next prev parent reply other threads:[~2001-08-10 14:40 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-08-10 14:11 martin.ebourne
2001-08-10 14:40 ` Borsenkow Andrej [this message]
2001-08-13 10:31 martin.ebourne
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='002301c121aa$63f51e90$21c9ca95@mow.siemens.ru' \
--to=andrej.borsenkow@mow.siemens.ru \
--cc=martin.ebourne@arcordia.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).