Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion with prefix which contains meta character.
- X-seq: zsh-workers 9249
- From: Tanaka Akira <akr@xxxxxxxxxxx>
- To: zsh-workers@xxxxxxxxxxxxxx
- Subject: Re: completion with prefix which contains meta character.
- Date: 06 Jan 2000 23:48:24 +0900
- In-reply-to: Sven Wischnowsky's message of "Thu, 6 Jan 2000 10:38:34 +0100 (MET)"
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <200001060938.KAA17703@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
In article <200001060938.KAA17703@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>,
Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx> writes:
> But it should. At least I wanted to get the -P and -S be used
> literally (should be the most powerful, right?).
I agree. It's the most powerful way.
> Since I feel adventurous today, I even documented that.
>
> And that rembslash() didn't make any sense at all.
Thanks. Now compadd -P is useful even in these cases. But I found
similar problem about compset -P.
Z:akr@is27e1u11% Src/zsh -f
is27e1u11% bindkey -e; autoload -U compinit; compinit -D; compdef _tst tst
is27e1u11% _tst () { compset -P '\*' && compadd xxx }
is27e1u11% tst \*<TAB>
This completes nothing.
is27e1u11% _tst () { compset -P '\\\*' && compadd xxx }
is27e1u11% tst \*<TAB>
This completes nothing, too.
If compset -P tries to match against unquoted form of prefix, former
should complete xxx. If it tries to match against quoted form, latter
should complete xxx. But both completes nothing.
--
Tanaka Akira
Messages sorted by:
Reverse Date,
Date,
Thread,
Author