Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Rebinding a widget within a keymap



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