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

Re: [Q] user-defined completion



Sven Guckes <guckes@xxxxxxxxxxxxxxxxx> writes:

> Quoting Didier Verna (verna@xxxxxxxxxxx): > I'd like to write a function for
> special command line completion, but that is > aware of the program whose
> command line we're completing. After reading the > doc, I see that
> user-defined functions get 2 arguments: pre and postfix. Is there a way to
> make such functions aware of the program name ? Any ideas ?

> Are talking about "completion control" with "compctl"?  

	Possibly, yes.


> "man zshcompctl"!

	That's what I meant by saying "after reading the doc". But it seems
that the answer is no. So, in case I'm missing something, or I'm just blind,
I would have liked to know if somebody knows a way to achieve this.

-- 
    /     /   _   _       Didier Verna        http://www.inf.enst.fr/~verna/
 - / / - / / /_/ /      E.N.S.T. INF C214        mailto:verna@xxxxxxxxxxx
/_/ / /_/ / /__ /        46 rue Barrault        Tel.   (33) 01 45 81 80 72
                      75634 Paris  cedex 13     Fax.   (33) 01 45 81 31 19



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