jtroo / kanata

Improve keyboard comfort and usability with advanced customization
GNU Lesser General Public License v3.0
3.08k stars 129 forks source link

Feature request: auto cancel macro #1337

Closed gerhard-h closed 1 week ago

gerhard-h commented 2 weeks ago

Is your feature request related to a problem? Please describe.

when I have a long running macro m (macro-release-cancel m 300 o ) and I interrupt it by typing say i after 100ms I get mio simulate But the intention of the macro was to get m or mo not something "random".

Describe the solution you'd like.

A fragil / breakable macro macro-alone could solve this. meaning macro-alone gets cancled when another key gets pressed.

Describe alternatives you've considered.

no good idea

Additional context

I stumbled into this while playing with zippy-chord and trying to add the same chord to the tap and hold action of keys. I don't believe this would fix my issues here, but I still think canceling macros is the mostly intended and more responsive behaviour.

jtroo commented 2 weeks ago

The use case is implementable today but very verbose: simulator link