Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Rebinding a widget within a keymap
- X-seq: zsh-users 10561
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Peter Stephenson <p.w.stephenson@xxxxxxxxxxxx>, zsh-users@xxxxxxxxxx
- Subject: Re: Rebinding a widget within a keymap
- Date: Sun, 30 Jul 2006 10:46:13 -0700
- In-reply-to: <200607301718.k6UHINXk002674@xxxxxxxxxxxxxxxxx>
- Mailing-list: contact zsh-users-help@xxxxxxxxxx; run by ezmlm
- References: <200607301718.k6UHINXk002674@xxxxxxxxxxxxxxxxx>
On Jul 30, 6:18pm, Peter Stephenson wrote:
}
} 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.
This is not a bad plan, but it plays havoc with #autoload and #compdef,
which are going to install the function or widget under its base file
name, which obviously can't have a slash in it. Yes, you can sort of
work around it with #compdef -K, but that's ugly. Choosing a character
other than slash (perhaps dot? Or does that break on Cygwin?) would
be sufficient.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author