Skip to content

Commit

Permalink
add markdown code block combo
Browse files Browse the repository at this point in the history
  • Loading branch information
JeffDess committed Dec 20, 2023
1 parent ed09f95 commit b36e104
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 1 deletion.
3 changes: 3 additions & 0 deletions behaviors/combos.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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, &LTE, RB1 RB2, SYM)

Expand Down
4 changes: 4 additions & 0 deletions behaviors/macros.dtsi
Original file line number Diff line number Diff line change
Expand Up @@ -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>,
Expand Down
6 changes: 5 additions & 1 deletion images/keymaps/urchin_keymap.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions keymap-drawer/config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -433,6 +433,7 @@ parse_config:
"&GTE": " >= ",
"&ARROW": " -> ",
"&FAT_ARROW": " => ",
"&MDCB": "```",
"&out OUT_TOG": '$$output-toggle$$'
}
sticky_label: sticky
Expand Down
3 changes: 3 additions & 0 deletions keymap-drawer/urchin_keymap.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,9 @@ combos:
- p: [23, 22]
k: ' -> '
l: [symbol]
- p: [6, 7]
k: '```'
l: [symbol]
- p: [26, 27]
k: ' <= '
l: [symbol]
Expand Down

0 comments on commit b36e104

Please sign in to comment.