From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Jesper Holmberg <jeho5791@student.uu.se>
Cc: Zsh-users List <zsh-users@sunsite.dk>
Subject: Re: Problem with complete-all
Date: Fri, 13 Aug 2004 11:33:08 +0200 [thread overview]
Message-ID: <14903.1092389588@trentino.logica.co.uk> (raw)
In-Reply-To: <20040813074526.GM1191@localhost>
Jesper Holmberg wrote:
> I can't get complete-all to work as I would like it to. Perhaps I have
> This is what I have in my .zshrc, taken from the manual:
It seems we need to fix the example in the manual.
> zle -C all-matches complete-word _generic
> bindkey '^Xx' all-matches
> zstyle ':completion:all-matches:*' old-matches only
> zstyle ':completion:all-matches::::' completer _all_matches
Try changing the last style to add _complete after _all_matches:
zstyle ':completion:all-matches::::' completer _all_matches _complete
It needs _complete there to actually generate some matches.
I also use this:
zstyle ':completion:all-matches:*' insert true
which makes it just insert the matches instead of giving you them as
an extra match.
and this:
zstyle ':completion:all-matches:*' file-patterns \
'%p:globbed-files' '*(-/):directories' '*:all-files'
That prevents it from inserting all the sub-directories in cases where
subdirectories are only completed to allow you to complete files within
them.
Oliver
next prev parent reply other threads:[~2004-08-13 9:35 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-08-13 7:45 Jesper Holmberg
2004-08-13 9:33 ` Oliver Kiddle [this message]
2004-08-13 9:58 ` Oliver Kiddle
2004-08-16 6:46 ` Jesper Holmberg
2004-08-17 10:28 ` Jesper Holmberg
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=14903.1092389588@trentino.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=jeho5791@student.uu.se \
--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).