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

Re: Automatic long options completion for --?



On Aug 1,  1:02pm, Sven Wischnowsky wrote:
} Subject: Re: Automatic long options completion for --?
}
} Andrej Borsenkow wrote:
} 
} > Is it possible to complete after -- for *any* command (of course, assuming
} > that no specific completion is defined)?
} 
} compdef -P _use_lo '*'

I've been fooling around with a function to be a front-end to _use_lo
that would try to determine whether the command accepts --help and poke
_use_lo into _comps if it does.  Maybe there's some way to combine it
with Adam's completion caching layer so zsh could "learn" which commands
can be completed that way.

-- 
Bart Schaefer                                 Brass Lantern Enterprises
http://www.well.com/user/barts              http://www.brasslantern.com

Zsh: http://www.zsh.org | PHPerl Project: http://phperl.sourceforge.net   



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