diff --git a/behaviors/combos.dtsi b/behaviors/combos.dtsi index a364c8c..3bdc345 100644 --- a/behaviors/combos.dtsi +++ b/behaviors/combos.dtsi @@ -64,6 +64,9 @@ ZMK_COMBO(fat_arrow, &FAT_ARROW, LM1 LM2, SYM) // THIN ARROW - Left index & middle fingers on bottom row, active on symbol layer ZMK_COMBO(arrow, &ARROW, LB1 LB2, SYM) +// Markdown Code Block Fence - Right index & middle fingers on top row, active on symbol layer +ZMK_COMBO(code_block, &MDCB, RT1 RT2, SYM) + // Lesser than or Equal - active on symbol layer ZMK_COMBO(lte, <E, RB1 RB2, SYM) diff --git a/behaviors/macros.dtsi b/behaviors/macros.dtsi index 2d85df5..b04b5fb 100644 --- a/behaviors/macros.dtsi +++ b/behaviors/macros.dtsi @@ -20,6 +20,10 @@ ZMK_BEHAVIOR(ARROW, macro, bindings = <&kp SPACE>; ) +// Markdown code block fence: '```' +ZMK_BEHAVIOR(CODE_BLOCK, macro, bindings = + <&GRA &GRA &GRA>; +) // Greater than or equal to: ' >= ' ZMK_BEHAVIOR(GTE, macro, bindings = <&kp SPACE>, diff --git a/images/keymaps/urchin_keymap.svg b/images/keymaps/urchin_keymap.svg index f44f1ab..ff8c23f 100644 --- a/images/keymaps/urchin_keymap.svg +++ b/images/keymaps/urchin_keymap.svg @@ -966,10 +966,14 @@ path.combo { -> + +``` + + <= - + >= diff --git a/keymap-drawer/config.yaml b/keymap-drawer/config.yaml index 185f00f..816b36b 100644 --- a/keymap-drawer/config.yaml +++ b/keymap-drawer/config.yaml @@ -433,6 +433,7 @@ parse_config: ">E": " >= ", "&ARROW": " -> ", "&FAT_ARROW": " => ", + "&MDCB": "```", "&out OUT_TOG": '$$output-toggle$$' } sticky_label: sticky diff --git a/keymap-drawer/urchin_keymap.yaml b/keymap-drawer/urchin_keymap.yaml index bc73449..d89b4fb 100644 --- a/keymap-drawer/urchin_keymap.yaml +++ b/keymap-drawer/urchin_keymap.yaml @@ -226,6 +226,9 @@ combos: - p: [23, 22] k: ' -> ' l: [symbol] +- p: [6, 7] + k: '```' + l: [symbol] - p: [26, 27] k: ' <= ' l: [symbol]