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

Re: Nice in-word incremental history word searcher



On Jan 20,  9:32pm, I wrote:
}
} Instead of overriding self-insert et al. in the main keymap and then
} restoring them, you can do the same thing as with the zhcw keymap:
} Create (once) a copy of the main keymap, install your new bindings
} for self-insert etc., in that copy, and then when you want to use the
} new keymap, switch to it with "zle -K".

Upon thinking about this a bit more ... this may be a better approach
but it's not necessarily an easier approach.  To do it this way you
have to find and rebind every keystroke that is linked to the widget
you intend to replace, rather than just aliasing the widget name.

That's not terribly difficult in Sebastian's function but it could
be ugly if there are a lot of such bindings to fiddle with.



Messages sorted by: Reverse Date, Date, Thread, Author