Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rebinding a widget within a keymap
- X-seq: zsh-users 10560
- From: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
- To: zsh-users@xxxxxxxxxx
- Subject: Re: Rebinding a widget within a keymap
- Date: Sun, 30 Jul 2006 18:18:23 +0100
- In-reply-to: Message from Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> of "Sat, 29 Jul 2006 23:29:39 PDT." <060729232941.ZM12664@xxxxxxxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
Bart Schaefer wrote:
> Note that for builtin widgets the "for k in $keymaps" loop is extraneous;
> so it would be possible to embed this widget-name-by-keymap logic in the
> C code in ZLE, thereby making it possible to insert an "override" widget
> into any specific keymap simply by creating a new widget with the keymap
> name appended. Old code that uses "zle -N builtin-widget user-function"
> would continue to work, but would break new code that relies on the by-
> keymap technique.
If it were done in C, I'd be tempted to use a more explicit indication
that there was (in effect) a namespace hierarchy in operation and have
the overriding widget name be $KEYMAP/$WIDGET or something like that.
--
Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>
Web page now at http://homepage.ntlworld.com/p.w.stephenson/
Messages sorted by:
Reverse Date,
Date,
Thread,
Author