aboutsummaryrefslogtreecommitdiff
path: root/quantum
diff options
context:
space:
mode:
authorZach White <skullydazed@gmail.com>2021-11-22 11:11:35 -0800
committerGitHub <noreply@github.com>2021-11-22 11:11:35 -0800
commit08ce0142bad40f22d05d33fdef8a7c8907154e96 (patch)
tree5b5da4650a76ec902a550e2719b79ffc2a73d74d /quantum
parent8181b155dbfd07561200b30b52a4046f2da92248 (diff)
downloadqmk_firmware-08ce0142bad40f22d05d33fdef8a7c8907154e96.tar.gz
qmk_firmware-08ce0142bad40f22d05d33fdef8a7c8907154e96.zip
Macros in JSON keymaps (#14374)
* macros in json keymaps * add advanced macro support to json * add a note about escaping macro strings * add simple examples * format json * add support for language specific keymap extras * switch to dictionaries instead of inline text for macros * use SS_TAP on the innermost tap keycode * add the new macro format to the schema * document the macro limit * add the json keyword for syntax highlighting * fix format that vscode screwed up * Update feature_macros.md * add tests for macros * change ding to beep * add json support for SENDSTRING_BELL * update doc based on feedback from sigprof * document host_layout * remove unused var * improve carriage return handling * support tab characters as well * Update docs/feature_macros.md Co-authored-by: Nick Brassel <nick@tzarc.org> * escape backslash characters * format * flake8 * Update quantum/quantum_keycodes.h Co-authored-by: Nick Brassel <nick@tzarc.org>
Diffstat (limited to 'quantum')
-rw-r--r--quantum/quantum_keycodes.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/quantum/quantum_keycodes.h b/quantum/quantum_keycodes.h
index cde97074d..d013a6a16 100644
--- a/quantum/quantum_keycodes.h
+++ b/quantum/quantum_keycodes.h
@@ -558,6 +558,40 @@ enum quantum_keycodes {
558 PROGRAMMABLE_BUTTON_31, 558 PROGRAMMABLE_BUTTON_31,
559 PROGRAMMABLE_BUTTON_32, 559 PROGRAMMABLE_BUTTON_32,
560 560
561 // Dedicated macro keys for Configurator and VIA
562 MACRO_0,
563 MACRO_1,
564 MACRO_2,
565 MACRO_3,
566 MACRO_4,
567 MACRO_5,
568 MACRO_6,
569 MACRO_7,
570 MACRO_8,
571 MACRO_9,
572 MACRO_10,
573 MACRO_11,
574 MACRO_12,
575 MACRO_13,
576 MACRO_14,
577 MACRO_15,
578 MACRO_16,
579 MACRO_17,
580 MACRO_18,
581 MACRO_19,
582 MACRO_20,
583 MACRO_21,
584 MACRO_22,
585 MACRO_23,
586 MACRO_24,
587 MACRO_25,
588 MACRO_26,
589 MACRO_27,
590 MACRO_28,
591 MACRO_29,
592 MACRO_30,
593 MACRO_31,
594
561 // Start of custom keycode range for keyboards and keymaps - always leave at the end 595 // Start of custom keycode range for keyboards and keymaps - always leave at the end
562 SAFE_RANGE 596 SAFE_RANGE
563}; 597};