-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
handling of key sequences when root/leader key is held #3
Comments
This is the supposed behaviour for hold and hybrid, but modal should always terminate after executing regardless if you're holding the root modifier or not (maybe a bug?). I am personally used to simply press the root modifier again when I want to reset the tree, but providing a configuration parameter makes totally sense. I'll look into it. |
Ok, actually what happens in modal mode is that it won't read any sequences (just passes them through) until I release the root/leader key. (I.e. I have to release and then press the root modifier again to start a new sequence.) |
Please checkout branch Does that work for you? |
Yes, the |
modal mode not considering modifier states is exactly what it makes different to hybrid mode in the first place, so this is intended behaviour. However, I am not able to replicate the other behaviour you're describing. |
My configuration is in Fennel, which transpiles to slightly unidiomatic Lua, but: keys:
transpiles to:
with functions defined as:
transpiles to:
and in my config, calling modalisa:
transpiles to:
|
Just to update/elucidate: with the stay_on_exec branch and stay_on_exec set to 'false", if I use hybrid mode, then while I can continue to hold "Super" and do as many <Super+[single character]> commands as I like, I still have to release "Super" if I want to execute a command that involves a sequence. E.g., so I can hold "Super" and press "1", "2", "3", "4", etc. and jump from tag to tag, but if I press "Super+2" and then continue to hold "Super" and press "f !" nothing happens. I have to release "Super" before the "(Super)-f !" sequence will work. If I use modal mode, then I have to release and repress "Super" between every command. |
Query about what might be a mode option or some other option I don't understand in terms of how key sequences are processed:
I have
Super_L
defined as my "root key" and then have (for instance) a key-sequence defined asff
for a function. What I expect to happen is that the function is executed every time I pressSuper_L-f f
, but what happens is that the first time I press this sequence it is indeed executed, but then if I continue to holdSuper_L
, then pressing just onef
causes the function to be executed again. I tried "modal" mode and "hybrid" mode, but this doesn't seem to change the behaviour. Is there another setting that would be relevant? Or something I'm not understanding about the basic functionality of modalisa?The text was updated successfully, but these errors were encountered: