stumpwm-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: (define-remapped-keys) With Multiple Key Sequences


From: Brandon Hale
Subject: Re: (define-remapped-keys) With Multiple Key Sequences
Date: Mon, 7 Dec 2020 12:37:52 -0500
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3

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 <bthaleproductions@gmail.com> 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]