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

Problem with nested modifiers #19

Closed
b-m-f opened this issue Nov 12, 2023 · 1 comment · Fixed by #22
Closed

Problem with nested modifiers #19

b-m-f opened this issue Nov 12, 2023 · 1 comment · Fixed by #22

Comments

@b-m-f
Copy link

b-m-f commented Nov 12, 2023

This is a part of my config

        tri_layer {
        bindings = <
        &kp LC(LA(LS(LEFT))) &kp LC(LA(LS(RIGHT))) &kp LG(PAGE_UP) &kp LG(PAGE_DOWN) &bt BT_CLR   &kp LA(H) &kp LA(J) &kp LA(K) &kp LA(L) &kp LA(MINUS)
        &trans &trans   &trans   &trans  &trans                                                   &kp LEFT &kp DOWN &kp UP &kp RIGHT &kp LA(BACKSLASH)
        &kp LG(UP) &kp LG(LEFT) &kp LG(RIGHT) &trans &trans                                       &kp K_COPY &kp K_PASTE &kp K_VOL_DN &kp K_VOL_UP &kp PRINTSCREEN
        &trans &trans                                                                             &trans &trans
        >;
        };

The parens on the first row lead to the following error:

zmk-config (master) $ zmk-viewer generate splitkb/aurora/sweep/rev1 -r -f config/splitkb_aurora_sweep.keymap
2023-11-12T11:07:38+01:00 INF Fetching keyboard layout.
2023-11-12T11:07:39+01:00 INF Parsing keymap file.
2023-11-12T11:07:39+01:00 ERR  error="/zmk-config/config/splitkb_aurora_sweep.keymap:94:15: unexpected token \"(\" (expected \">\" \";\" (\"sensor\" \"-\" \"bindings\" \"=\" \"<\" Behavior+ \">\" \";\")? \"}\" \";\")"
2023-11-12T11:07:39+01:00 INF Image saved Path=splitkb_aurora_sweep_rev1_split_3x5_2.png

The generated png is simply the empty keymap

@MrMarble MrMarble mentioned this issue May 1, 2024
@MrMarble MrMarble linked a pull request May 1, 2024 that will close this issue
@MrMarble
Copy link
Owner

MrMarble commented May 1, 2024

Fixed in https://github.com/MrMarble/zmk-viewer/releases/tag/v2.0.0

@MrMarble MrMarble closed this as completed May 1, 2024
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

Successfully merging a pull request may close this issue.

2 participants