Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Bug#236350: zsh: _prefix completer broken?
- X-seq: zsh-workers 19547
- From: Oliver Kiddle <okiddle@xxxxxxxxxxx>
- To: Zsh workers <zsh-workers@xxxxxxxxxx>
- Subject: Re: Bug#236350: zsh: _prefix completer broken?
- Date: Sat, 06 Mar 2004 19:03:02 +0100
- Cc: Andrew Pimlott <andrew@xxxxxxxxxxx>
- In-reply-to: <1040306173839.ZM5329@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <E1AzKUu-0003tz-00@xxxxxxxxxxxxxxxxxxxxxxxxx> <20040306013513.GA25297@xxxxxxxxxxx> <20040306160540.GW19320@xxxxxxxxxxx> <1040306173839.ZM5329@xxxxxxxxxxxxxxxxxxxxxxx>
Bart wrote:
>
> The add-space style does default to true, and you're seeing exactly what
> you should be seeing. What you (and possibly the documentation) missed
> is that the add-space style applies only to the _expand and _prefix
> completers, so its default setting makes no difference if you aren't
> using one of those.
I can reproduce:
% zsh -f
% autoload -U compinit; compinit
% setopt completeinword
% zstyle ':completion:*' completer _complete _prefix
% egre<tab>foo
gives:
% egrepfoo
with the cursor over the f.
So where's the space?
Now set: zstyle ':completion:*' add-space true
and try again. Is it perhaps just meant to be for _expand that
add-space defaults to true?
> In both 4.2.0-pre-3 and 4.0.7, my completion style looks like this:
>
> zstyle ':completion:*' completer \
> _oldlist _expand _complete _match _ignored _approximate _prefix
>
> However, 4.2.0-pre-3 never gets beyond trying _approximate. The output
This is the bug I reported in 17846.
For now, I moved _prefix before _approximate.
Oliver
Messages sorted by:
Reverse Date,
Date,
Thread,
Author