Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: how can one let completion work *inside* zsh scripts?
- X-seq: zsh-users 3352
- From: Matthias Kopfermann <kopfermann@xxxxxxxxxxxxxxxxxxxx>
- To: Sven Wischnowsky <wischnow@xxxxxxxxxxxxxxxxxxxxxxx>
- Subject: Re: how can one let completion work *inside* zsh scripts?
- Date: Tue, 1 Aug 2000 17:34:35 +0200
- Cc: zsh-users@xxxxxxxxxxxxxx
- In-reply-to: <no.id>; from wischnow@xxxxxxxxxxxxxxxxxxxxxxx on Thu, Jul 27, 2000 at 03:21:07PM +0200
- Mailing-list: contact zsh-users-help@xxxxxxxxxxxxxx; run by ezmlm
On Thu, Jul 27, 2000 at 03:21:07PM +0200, Sven Wischnowsky wrote:
>
> But that almost suggest (at least to me, striving for consistency) to
> put everything into a string of the form `<descr>:<action>', where
> <action> is as in _arguments, i.e.:
>
> {...} = evaluate `...'
> (1 2) = complete `1' and `2'
> (( 1\:foo 2\:bar )) = complete `1' and `2' and describe them as
> `foo' and `bar' in the list
>
> Hm, is this going too far? Or should we use the array-based solution
> and allow to give the description with another parameter?
it could be me alone, but i guess that arrays for one and then
parameters with another description would be nice.
perhaps because it is easier for the eye. have problems to have a
series of ::: after each other. (my biggest problem with the new
completion system. thats like using FPATH instead of fpath, i
like the new way that ZSH solves the problem of pathes with an
array. it's not the same here but it still is full of words.)
> Or should we just support compcontext-as-array without (a)
> description(s) (and the `func()' form) and let user's use functions if
> they need descriptions?
hmm, what do the others think?
Messages sorted by:
Reverse Date,
Date,
Thread,
Author