You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
but wrapped all into one. Half of me thinks that ideally rustfmt could do a better job with arrays ( rust-lang/rustfmt#4710 ) but half of me thinks some macro magic might be the answer...
The text was updated successfully, but these errors were encountered:
For an ortholinear or orthoclumnar board, I find EasyAlign does the trick with a visual mode on each layer. https://github.com/junegunn/vim-easy-align
Visual command: :'<,'>EasyAlign *\
Makes your layout look something like this:
pubstaticLAYERS: keyberon::layout::Layers<CustomActions> = keyberon::layout::layout! {{[// 0QWERTYUIOP{A_LSHIFT}{L5_S}{D_LALT}{L2_F}GHJKL{SEMI_RSHIFT}{Z_LCTRL}{X_LALT}{L4_C}VBNM{L4_COMMA}{DOT_RALT}{SLASH_RCTRL}
t t t (3)BSpace{L7_SPACE}TabEscapeEnterTab]}
The layers design takes a lot of work to keep looking neat. Lots of tabbing to make sure it alligns nicely in a grid.
Wondering if there's a nicer way... I think there's some nice ideas here:
https://github.com/qmk/qmk_firmware/blob/master/layouts/community/ortho_5x14/yet-another-developer/keymap.c
but wrapped all into one. Half of me thinks that ideally rustfmt could do a better job with arrays ( rust-lang/rustfmt#4710 ) but half of me thinks some macro magic might be the answer...
The text was updated successfully, but these errors were encountered: