From dc4eaf6b4716683da7acc7dfacf4433b5d263350 Mon Sep 17 00:00:00 2001 From: Victor DG Date: Wed, 26 Jul 2023 23:11:25 +0200 Subject: [PATCH] fixme natural with macro --- config/via_spanish.h | 45 +++++++++++++++++++++++++++++++++++--------- 1 file changed, 36 insertions(+), 9 deletions(-) diff --git a/config/via_spanish.h b/config/via_spanish.h index aace2b0..f15f06e 100644 --- a/config/via_spanish.h +++ b/config/via_spanish.h @@ -197,12 +197,39 @@ #define ES_DESK_R &kp LG(LC(RIGHT)) // natural editor - fixme_natural_macro(fixme_natural_macro, - bindings = < &kp LC(C) &kp END &kp RET > - , < &kp W &kp R &kp I &kp T &kp E &kp SPACE > - , < &kp MINUS &kp LC(V) &kp MINUS &kp SPACE > - , < &kp LC(V) &kp LS(N7) &kp LS(RBKT) &kp SPACE > - , < &kp F &kp I &kp X &kp M &kp E &kp SPACE > - , < &kp B &kp O &kp R &kp R &kp A &kp R > ; - ) - \ No newline at end of file +// ixme_natural_macro(fixme_natural_macro, +// bindings = < &kp LC(C) &kp END &kp RET > +// , < &kp W &kp R &kp I &kp T &kp E &kp SPACE > +// , < &kp MINUS &kp LC(V) &kp MINUS &kp SPACE > +// , < &kp LC(V) &kp LS(N7) &kp LS(RBKT) &kp SPACE > +// , < &kp F &kp I &kp X &kp M &kp E &kp SPACE > +// , < &kp B &kp O &kp R &kp R &kp A &kp R > ; +// ) + +// #define MACRO(name, keys) \ +// name: name##_macro { \ +// label = #name; \ +// compatible = "zmk,behavior-macro";\ +// #binding-cells = <0>; \ +// tap-ms = <1>; \ +// wait-ms = <1>; \ +// bindings = ; \ +// }; + +/ { + macros { + fixme_natural_macro: fixme_natural_macro { + label = "fixme_natural_macro"; + compatible = "zmk,behavior-macro"; + #binding-cells = <0>; + bindings + = < &kp LC(C) &kp END &kp RET > + , < &kp W &kp R &kp I &kp T &kp E &kp SPACE > + , < &kp MINUS &kp LC(V) &kp MINUS &kp SPACE > + , < &kp LC(V) &kp LS(N7) &kp LS(RBKT) &kp SPACE > + , < &kp F &kp I &kp X &kp M &kp E &kp SPACE > + , < &kp B &kp O &kp R &kp R &kp A &kp R > ; + }; + }; +}; +// }}} \ No newline at end of file