From: Oliver Kiddle <okiddle@yahoo.co.uk>
To: Thorsten Kampe <thorsten@thorstenkampe.de>
Cc: zsh-users@sunsite.dk
Subject: Re: How to get faster completion if I make zsh assume what I've typed so far is correct?
Date: Wed, 07 Apr 2004 14:32:55 +0200 [thread overview]
Message-ID: <13471.1081341175@trentino.logica.co.uk> (raw)
In-Reply-To: <14f8etwgw10e8.dlg@thorstenkampe.de>
Thorsten Kampe wrote:
> * paxunix (2004-04-07 12:41 +0100)
> >> The latter works perfectly. The situation is even more pronounced on
> >> zsh under Cygwin, where completing a path with
> >> /cygdrive/<drive-letter> will cause your floppy drive to be accessed
> >> every time you attempt a new completion. The accept-exact '*'
> >> resolves this issue wonderfully. Many thanks!
For just resolving the /cygdrive/<drive-letter> problem, it might be
better to use something like: accept-exact '[acdef]'
just list all your drive letters. That will limit the scope of the
style more than '*'.
> > There are a couple of very annoying issues with this solution:
> > ambiguous matches are not cycled through correctly and it is impossible
> > to complete some pathnames.
That's because it is enabling accept-exact for the last component and
not just the earlier path components.
I don't know of any way to get this to work properly (short of digging
into the C source for compfiles). It really ought to be possible to
disable the partial completion.
> Try "zstyle ':completion:*:paths' accept-exact continue"
That won't help. It would just affect directories named `continue'. The
value `continue' is a feature of the _expand completer so should be used
with a context like ':completion:*:expand:*'. It allows both completions
and expansions to be offered in the case of exact ambiguous matches.
Oliver
next prev parent reply other threads:[~2004-04-07 12:34 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-23 16:26 paxunix
2004-03-23 16:56 ` Aidan Kehoe
2004-03-23 17:06 ` Peter Stephenson
2004-03-24 3:37 ` paxunix
2004-04-07 10:41 ` paxunix
2004-04-07 11:41 ` Thorsten Kampe
2004-04-07 12:32 ` Oliver Kiddle [this message]
2004-04-14 20:04 ` Peter Stephenson
2004-04-15 3:52 ` paxunix
2004-04-15 4:05 ` paxunix
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=13471.1081341175@trentino.logica.co.uk \
--to=okiddle@yahoo.co.uk \
--cc=thorsten@thorstenkampe.de \
--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).