Skip to content
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

Feature request: antecedent-morph (aka adaptive keys) #1624

Open
urob opened this issue Jan 10, 2023 · 1 comment
Open

Feature request: antecedent-morph (aka adaptive keys) #1624

urob opened this issue Jan 10, 2023 · 1 comment

Comments

@urob
Copy link
Contributor

urob commented Jan 10, 2023

This is an idea for a new behavior, which I think could be really useful and open up all sorts of creative uses:

The antecedent-morph behavior would trigger an alternative binding if within timeout-ms the immediate predecessor matches the trigger condition. This would enable using adaptive keys where certain keys change their meaning if pressed immediately after another key, as popularized by the Hands Down layouts.

For instance, in the Hands Down layout, ,A send UA. Using the proposed behavior, this could be implemented by replacing &kp A with a antecedent-morph configured as follows:

adaptive_A: adaptive_A {
    compatible=  "zmk,behavior-antecedent-morph";
    bindings = <&kp A>, <&morphed_A>;
    timeout-ms = <1000>;
    antecedent = <&kp DOT>:
}

and where &morphed_A is a macro executing BACKSPACE, U, A.

@caksoylar
Copy link
Contributor

Would be fixed by #2042.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants