* [Q] user-defined completion
@ 1998-06-22 10:14 Didier Verna
1998-06-23 11:32 ` Sven Guckes
0 siblings, 1 reply; 3+ messages in thread
From: Didier Verna @ 1998-06-22 10:14 UTC (permalink / raw)
To: zsh-users
Hi!
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 ?
Thanks.
--
/ / _ _ Didier Verna http://www.inf.enst.fr/~verna/
- / / - / / /_/ / E.N.S.T. INF C214 mailto:verna@inf.enst.fr
/_/ / /_/ / /__ / 46 rue Barrault Tel. (33) 01 45 81 80 72
75634 Paris cedex 13 Fax. (33) 01 45 81 31 19
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] user-defined completion
1998-06-22 10:14 [Q] user-defined completion Didier Verna
@ 1998-06-23 11:32 ` Sven Guckes
1998-06-23 11:39 ` Didier Verna
0 siblings, 1 reply; 3+ messages in thread
From: Sven Guckes @ 1998-06-23 11:32 UTC (permalink / raw)
To: zsh-users
Quoting Didier Verna (verna@inf.enst.fr):
> 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"? "man zshcompctl"!
Sven
--
Sven Guckes guckes@math.fu-berlin.de using zsh-3.0.5 [961218]
ZSH HomePage: http://www.zsh.org | Latest version: zsh-3.1.3 [980501]
ZSH Pages: http://www.math.fu-berlin.de/~guckes/zsh/ Tips and tricks
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [Q] user-defined completion
1998-06-23 11:32 ` Sven Guckes
@ 1998-06-23 11:39 ` Didier Verna
0 siblings, 0 replies; 3+ messages in thread
From: Didier Verna @ 1998-06-23 11:39 UTC (permalink / raw)
To: Sven Guckes; +Cc: zsh-users
Sven Guckes <guckes@math.fu-berlin.de> writes:
> Quoting Didier Verna (verna@inf.enst.fr): > 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@inf.enst.fr
/_/ / /_/ / /__ / 46 rue Barrault Tel. (33) 01 45 81 80 72
75634 Paris cedex 13 Fax. (33) 01 45 81 31 19
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1998-06-23 12:38 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1998-06-22 10:14 [Q] user-defined completion Didier Verna
1998-06-23 11:32 ` Sven Guckes
1998-06-23 11:39 ` Didier Verna
Code repositories for project(s) associated with this public inbox
https://git.vuxu.org/mirror/zsh/
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).