Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Let's finish this new completion stuff
- X-seq: zsh-workers 5479
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: Let's finish this new completion stuff
- Date: Mon, 22 Feb 1999 21:28:45 -0800 (PST)
- Cc: zsh-workers@xxxxxxxxxxxxxx
- In-reply-to: <199902220944.KAA20958@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
- References: <199902220944.KAA20958@xxxxxxxxxxxxxxxxxxxxxxxxxxxx>
- Reply-to: Bart Schaefer <schaefer@xxxxxxxxxxx>
Just a few words ...
Sven Wischnowsky writes:
>
> Making the list of completions generated so far available isn't that
> easy without disallowing adding further completions. Also, we can't
> easily deliver all the information stored with an array. But now that
> we are speaking about sepcial subscript-syntax anyway, how about:
>
> $matches[num][prefix] gives the `compadd -p'-prefix of the num'th
> match
> $matches[num][string] the string to list
I don't want to get into anything that looks like a multidimensional
array. OK would be $matches[prefix(num)] or something ... though in
thinking about it a bit further, I think I prefer requiring the (r) or
(R) flag to activate any such magic, e.g. $matches[(r)prefix(num)].
The connection to patterns is useful; it's just a special case of a
pattern.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author