zmk icon indicating copy to clipboard operation
zmk copied to clipboard

Feature request: continue-mod-list for caps-word

Open urob opened this issue 3 years ago • 2 comments

The current behavior is that caps-word continues on all mod. It would be useful to add a configuration option that allows the user to specify for which mods caps-word continues and for which it is deactivated.

Relatedly, would deactivating caps-word on mod-presses be a more sensible default?

urob avatar Jul 30 '22 20:07 urob

Upon further consideration, having a complete continue-mod-list might be overkill. In most use cases, a simple ignore-modifiers property that can be turned on or off by the user should be enough. To that effect, I added a PR implementing that feature: https://github.com/zmkfirmware/zmk/pull/1422

urob avatar Aug 05 '22 20:08 urob

This is fixed by https://github.com/zmkfirmware/zmk/pull/1451 (which superseded https://github.com/zmkfirmware/zmk/pull/1422). With the PR one can use /delete-property ignore-modifiers/ and then use continue-list to specify for which modifiers caps-word is not cancelled. For example, to continue caps-word on shift but cancel it with all other modifiers, one would add the following to the user-config:

&caps_word {
    /delete-property/ ignore-modifiers;
    continue-list = <UNDERSCORE  BACKSPACE DELETE LSHFT RSHFT>;
};

urob avatar Sep 10 '22 23:09 urob