Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Per command _redirect completion



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