Re: (define-remapped-keys) With Multiple Key Sequences
Brandon Hale <[email protected]> Mon, 7 Dec 2020 12:37:52 -0500
| Newsgroups | gmane.comp.window-managers.stumpwm.devel |
|---|---|
| Message-ID | <[email protected]> |
Alright, I'll try to look into it and possibly find a way to do it. Thanks for the help! On 12/6/20 11:03 PM, Ram Krishnan wrote: > Brandon Hale <[email protected]> writes: > >> Hello all, >> >> I have just started playing with (define-remapped-keys) and was >> wondering if there is a way to get multiple keys sequences in a >> program to do one thing. Basically I want to do something like this: >> >> >> (define-remapped-keys >> >> '(("(firefox|Chrome)" >> >> (("C-x" "C-h") . "C-a")))) >> >> I envision that me pressing C-x, then C-h, will allow firefox to do >> the C-a key binding. Is there a way to do this and I just don't know >> the syntax, or is this impossible? > This isn't currently supported in the remap-keys feature. It shouldn't be too hard to implement, but does require something similar to the keymap handling behavior to be added. Unfortunately, I don't think the existing keymap handling could be directly applied as remap-keys is more of a translation of one key sequence to another - but, maybe there's a clever way to reuse the existing code. > >> >> Thank you very much for your help!, >> >> Brandon Hale