From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: GoTaR <gotar@poczta.onet.pl>
Cc: zsh-users@sunsite.dk
Subject: Re: Expand from completion
Date: Tue, 22 Apr 2003 14:30:23 +0200 [thread overview]
Message-ID: <13659.1051014623@gmcs3.logica.co.uk> (raw)
In-Reply-To: <20030422105227.GA1929@os.polanet.pl>
GoTaR wrote:
>
> I don't remember if I asked it allready, but there is new version
> coming, so maybe once more: how to expand sth like this:
>
> ~: rpm -qi *devel*[tab]
> ? I'd like to bring all matches to command line:
Sounds like you want to use the _all_matches completer, probably in
combination with _match. _all_matches should go at the beginning of the
list of completers, before _complete or _match.
> For files it works with ^x-* (or with some style/sth with tab).
If you want it to be bound to a key instead of part of the things tab
will do, create a new widget using _generic:
zle -C all-matches complete-word _generic
bindkey '^Xx' all-matches
Then put `all-matches' in the widget part of the context for any styles
you want to set. As a minimum, you'll need to set the completer style:
zstyle ':completion:all-matches::::' completer _all_matches _complete _match
Oliver
next prev parent reply other threads:[~2003-04-22 12:31 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2003-04-22 10:52 GoTaR
2003-04-22 12:30 ` Oliver Kiddle [this message]
[not found] ` <20030422180942.GA422@os.polanet.pl>
2003-04-23 9:43 ` Oliver Kiddle
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=13659.1051014623@gmcs3.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=gotar@poczta.onet.pl \
--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).