Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
compinit/compdef useful outside of completion?
- X-seq: zsh-workers 6916
- From: "Andrej Borsenkow" <Andrej.Borsenkow@xxxxxxxxxxxxxx>
- To: "ZSH workers mailing list" <zsh-workers@xxxxxxxxxxxxxx>
- Subject: compinit/compdef useful outside of completion?
- Date: Tue, 29 Jun 1999 15:47:25 +0400
- Importance: Normal
- Mailing-list: contact zsh-workers-help@xxxxxxxxxxxxxx; run by ezmlm
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
Messages sorted by:
Reverse Date,
Date,
Thread,
Author