Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Per command _redirect completion
- X-seq: zsh-workers 16718
- From: Sven Wischnowsky <wischnow@xxxxxxxxx>
- To: zsh-workers@xxxxxxxxxx
- Subject: Re: Per command _redirect completion
- Date: Tue, 26 Feb 2002 09:44:38 +0100
- In-reply-to: <20020226065605.35661.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-workers-help@xxxxxxxxxx; run by ezmlm
- References: <20020225094729.25283.qmail@xxxxxxxxxxxxxxxxxxxxxx> <20020226065605.35661.qmail@xxxxxxxxxxxxxxxxxxxxxxx>
Felix Rosencrantz wrote:
> --- Oliver Kiddle <okiddle@xxxxxxxxxxx> wrote:
> > I would prefer if - both for redirection and for values - we had
> > separate associative arrays like _comps. And then, perhaps a compdef
> > option for adding to these new associations.
> >
> > This is for a number of reasons, one being consistency with the way we
> > handle commands. ...
> > This redirection suggestion is even more linked to the command being
> > run and again it would be more useful to use the existing command's
> > completion function and have it work out what sort of files to
> > complete.
>
> Yep, that's exactly why I asked, there is an inconsistency. Though, I'm not
> volunteering to graft redirection and value/parameter onto the _comps or a
> similar array. Would have to be a job for someone else.
I would try to make compdef and parts of _normal (and probably
_complete) generic enough to use an assoc given as argument, so that
we get the pattern and services stuff.
I think I'll give it a try.
Bye
Sven
--
Sven Wischnowsky wischnow@xxxxxxxxx
Messages sorted by:
Reverse Date,
Date,
Thread,
Author