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

Re: Per command _redirect completion



--- 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.

Though I would like to see better completion for redirection.  Redirection is
one of those situations where the file may not already exist, so better
guessing tricks would be useful.

-FR

__________________________________________________
Do You Yahoo!?
Yahoo! Sports - Coverage of the 2002 Olympic Games
http://sports.yahoo.com



Messages sorted by: Reverse Date, Date, Thread, Author