Skip to content

Commit

Permalink
Merge branch '3.0.4'
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Sep 26, 2021
2 parents 415e8a0 + 8413394 commit 8cfbf0d
Show file tree
Hide file tree
Showing 13 changed files with 508 additions and 124 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/ci-syntax-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,13 +27,13 @@ jobs:
matrix:
include:
- build: 4107
packages: a147e3eb6210de480d0d9a6bd6bf54931a8ba7e9
default_packages: v4107
- build: latest
packages: master
default_packages: master
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: SublimeText/syntax-test-action@v2
with:
build: ${{ matrix.build }}
default_packages: ${{ matrix.packages }}
default_packages: ${{ matrix.default_packages }}
48 changes: 25 additions & 23 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -357,125 +357,127 @@
{ "keys": ["alt+k", "alt+keypad0"], "command": "mde_change_headings_level", "args": {"to": 0}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+0"], "command": "mde_change_headings_level", "args": {"to": 0}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+keypad1"], "command": "mde_change_headings_level", "args": {"to": 1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+1"], "command": "mde_change_headings_level", "args": {"to": 1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+keypad2"], "command": "mde_change_headings_level", "args": {"to": 2}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+2"], "command": "mde_change_headings_level", "args": {"to": 2}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+keypad3"], "command": "mde_change_headings_level", "args": {"to": 3}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+3"], "command": "mde_change_headings_level", "args": {"to": 3}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+keypad4"], "command": "mde_change_headings_level", "args": {"to": 4}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+4"], "command": "mde_change_headings_level", "args": {"to": 4}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+keypad5"], "command": "mde_change_headings_level", "args": {"to": 5}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+5"], "command": "mde_change_headings_level", "args": {"to": 5}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+keypad6"], "command": "mde_change_headings_level", "args": {"to": 6}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["alt+k", "alt+6"], "command": "mde_change_headings_level", "args": {"to": 6}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["ctrl+alt+."], "command": "mde_change_headings_level", "args": {"by": 1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
{ "keys": ["ctrl+alt+,"], "command": "mde_change_headings_level", "args": {"by": -1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true },
{ "key": "mde.keymap_disable.set_heading_level", "operand": false }
{ "key": "setting.mde.keymap_disable.set_heading_level", "operand": false }
]
},
// If nothing is selected, pressing hash in front of heading label increases level by one
{ "keys": ["#"], "command": "mde_change_headings_level", "args": {"by": 1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.kbd", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.heading", "match_all": true },
{ "key": "setting.mde.auto_match_heading_hashes", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*#*\\s*$", "match_all": true }
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*#*$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^#*\\s\\S", "match_all": true }
]
},
// If nothing is selected, pressing backspace within or directly after leading hashes decreases heading level
{ "keys": ["backspace"], "command": "mde_change_headings_level", "args": {"by": -1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.kbd", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.heading", "match_all": true },
{ "key": "setting.mde.auto_match_heading_hashes", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*#+\\s?$", "match_all": true }
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*#+$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^#*\\s\\S", "match_all": true }
]
},
// If nothing is selected, pressing delete within or directly in front of leading hashes decreases heading level
{ "keys": ["delete"], "command": "mde_change_headings_level", "args": {"by": -1}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.kbd", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.heading", "match_all": true },
{ "key": "setting.mde.auto_match_heading_hashes", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*#*\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^#", "match_all": true }
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*#*$", "match_all": true },
{ "key": "following_text", "operator": "regex_contains", "operand": "^#+\\s\\S", "match_all": true }
]
},
{ "keys": ["enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Balance Trailing Hashes.sublime-macro"}, "context":
Expand Down
Loading

0 comments on commit 8cfbf0d

Please sign in to comment.