zsh-workers
 help / color / mirror / code / Atom feed
* compinit/compdef useful outside of completion?
@ 1999-06-29 11:47 Andrej Borsenkow
  0 siblings, 0 replies; 2+ messages in thread
From: Andrej Borsenkow @ 1999-06-29 11:47 UTC (permalink / raw)
  To: ZSH workers mailing list

Don't you think, that these can be used not only with completion widgets? I
actually like the idea, when I just need to drop a file in defined place and it
will automatically be used next time I start shell. No more .zshrc editing etc.

What I mean, does it make sense to extend compinit/compdef to handle "normal"
user defined widgets as well ('course, the names will probably be too misleading
...). E.g. 'compdef -w widget function' to define normal widget. You could even
automatically bind it to key sequence with additional parameter ... say "-k
^Xn"?
And start function with '#compdef -w <widget>'

Comments?

/andrej


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: compinit/compdef useful outside of completion?
@ 1999-06-29 12:03 Sven Wischnowsky
  0 siblings, 0 replies; 2+ messages in thread
From: Sven Wischnowsky @ 1999-06-29 12:03 UTC (permalink / raw)
  To: zsh-workers


Andrej Borsenkow wrote:

> Don't you think, that these can be used not only with completion widgets? I
> actually like the idea, when I just need to drop a file in defined place and it
> will automatically be used next time I start shell. No more .zshrc editing etc.
> 
> What I mean, does it make sense to extend compinit/compdef to handle "normal"
> user defined widgets as well ('course, the names will probably be too misleading
> ...). E.g. 'compdef -w widget function' to define normal widget. You could even
> automatically bind it to key sequence with additional parameter ... say "-k
> ^Xn"?
> And start function with '#compdef -w <widget>'

I've been thinking about this, too. Some kind of autoauto-functions
with arguments describing the tags to expect and what to do with
them. Or some external configuration and then cal autoauto or
whatever. (Heck, haven't I mentioned that yet? I thought I had, but
maybe I've been only thinking too much about it.)

This is even more interesting if we once get into heavy widget-hacking.

What I'm currently thinking about is how we could generalise the
dumping code and integrate it with a generic autoauto function.

Bye
 Sven


--
Sven Wischnowsky                         wischnow@informatik.hu-berlin.de


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~1999-06-29 12:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-29 11:47 compinit/compdef useful outside of completion? Andrej Borsenkow
1999-06-29 12:03 Sven Wischnowsky

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