-
-
Notifications
You must be signed in to change notification settings - Fork 156
Open
Description
Hi
I want to write a keyboard layout (form RMK firmware) and align columns, rows by hand.
Sample
keymap = [
[
["Application", "Kc1", "Kc2", "Kc3", "Kc4", "Kc5"],
["Tab", "Q", "W", "E", "R", "T"],
["Escape", "A", "S", "D", "F", "G"],
["LShift", "Z", "X", "C", "V", "B"],
["__", "LCtrl", "Grave", "Equal", "LeftBracket", "RightBracket"],
["LCtrl", "LAlt", "LGui", "LShift", "Delete", "MO(6)"],
["Backspace", "__", "__", "__", "__", "__"],
["Kc6", "Kc7", "Kc8", "Kc9", "Kc0", "Minus"],
["Y", "U", "I", "O", "P", "Backslash"],
["H", "J", "K", "L", "Semicolon", "Quote"],
["N", "M", "Comma", "Dot", "Slash", "RShift"],
["__", "Left", "Down", "UP", "Right", "RGui"],
["RGui", "RAlt", "RCtrl", "MO(6)", "Enter", "RShift"],
["__", "Space", "__", "__", "__", "__"]
],
[
["Escape", "Kc1", "Kc2", "Kc3", "Kc4", "Kc5"],
["Tab", "Tab", "Q", "W", "E", "R"],
["LCtrl", "LCtrl", "A", "S", "D", "F"],
["LShift", "LShift", "Z", "X", "C", "V"],
["__", "Kc6", "Kc7", "Kc8", "Kc9", "Kc0"],
["LCtrl", "LAlt", "__", "LShift", "Enter", "MO(6)"],
["Space", "__", "__", "__", "__", "__"],
["Kc6", "Kc7", "Kc8", "Kc9", "Kc0", "Minus"],
["T", "Y", "U", "I", "O", "P"],
["G", "H", "J", "K", "L", "Semicolon"],
["B", "N", "M", "Comma", "Dot", "Slash"],
["__", "Left", "Down", "UP", "Right", "RGui"],
["RGui", "RAlt", "RCtrl", "MO(6)", "Enter", "RShift"],
["__", "Space", "__", "__", "__", "__"]
],
]Taplo will reformat it in vertical which makes visually aligning it with physical keyboard switches difficult.
Is there any way to e.g. surround some text with disable auto formatting here ?
Desired functionality in ruff.
Metadata
Metadata
Assignees
Labels
No labels