Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Expand from completion
- X-seq: zsh-users 6044
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: GoTaR <gotar@xxxxxxxxxxxxxx>
- Subject: Re: Expand from completion
- Date: Wed, 23 Apr 2003 11:43:31 +0200
- Cc: zsh-users@xxxxxxxxxx
- In-reply-to: <20030422180942.GA422@xxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <20030422105227.GA1929@xxxxxxxxxxxxx> <13659.1051014623@xxxxxxxxxxxxxxxxxx> <20030422180942.GA422@xxxxxxxxxxxxx>
You wrote:
> > 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
>
> Yeah, that's almost it, thanks! But two more questions:
>
> ~: rpm -q *devel*[^Xx]
> ~: rpm -q ORBit-devel-0.5.17-2 Tue 22 20:04:59 tty2
> RPM package _
> ORBit-devel-0.5.17-2 esound-devel-0.2.29-1 libstdc++-devel-3.2.2-0.5
> SDL-devel-1.2.5-4 expat-devel-1.95.6-2 libtiff-devel-3.6.0-0.beta.1
> [...]
> all matches
> ORBit-devel-0.5.17-2 SDL-devel-1.2.5-4 SDL_image-devel-1.2.3-1 SDL_mix
>
> cursor goes in place of '_', so that moving around completions messes
> screen. How to avoid this?
I can't reproduce that problem so I'm not sure.
> And second - how to make 'all matches' go
> directly into command line, without showing 'RPM package' with list?
When I wanted to do that myself, I added the insert style to
_all_matches but that change is only in zsh 4.1. So in 4.1, you can do:
zstyle ':completion:all-matches:*' insert true
If you want to stick with 4.0, you could probably just take the
_all_matches patch from 16923 and put the modified _all_matches
somewhere early in your $fpath.
I also find it useful to set:
zstyle ':completion:all-matches:*' old-matches true
so that if an existing list is displayed, perhaps from a different
completer, I can press ^Xx and it will insert all the matches from the
existing list.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author