diff --git a/Default (OSX).sublime-keymap b/Default (OSX).sublime-keymap index 7b046b58..869b1509 100644 --- a/Default (OSX).sublime-keymap +++ b/Default (OSX).sublime-keymap @@ -678,7 +678,7 @@ { "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw", "match_all": true } ] }, - { "keys": ["super+shift+["], "command": "mde_fold_section", "context": + { "keys": ["super+alt+["], "command": "mde_fold_section", "context": [ { "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.list", "match_all": true }, { "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true }, @@ -686,7 +686,7 @@ { "key": "overlay_visible", "operator": "equal", "operand": false } ] }, - { "keys": ["super+shift+]"], "command": "mde_unfold_section", "context": + { "keys": ["super+alt+]"], "command": "mde_unfold_section", "context": [ { "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.list", "match_all": true }, { "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true }, diff --git a/docs/usage.md b/docs/usage.md index c8fe0476..2e2f732e 100644 --- a/docs/usage.md +++ b/docs/usage.md @@ -107,10 +107,10 @@ or use one of the following bindings: | Linux/Windows | MacOS | Description |---------------|-------|------------- -| Alt + k, Alt + 0 | ^ + k, ^ + 0 | convert headings into normal text -| Alt + k, Alt + 1..6 | ^ + k, ^ + 1..6 | set headings level to 1..6 -| Shift + Alt + , | + ^ + , | reduce headings level by one -| Shift + Alt + . | + ^ + . | increase headings level by one +| Alt + k, Alt + 0 | + k, + 0 | convert headings into normal text +| Alt + k, Alt + 1..6 | + k, + 1..6 | set headings level to 1..6 +| Shift + Alt + , | + + , | reduce headings level by one +| Shift + Alt + . | + + . | increase headings level by one Key bindings can be disabled via `"mde.keymap_disable.set_heading_level": true`. @@ -162,12 +162,12 @@ Folding is bound to following keys by default: | Linux/Windows | MacOS | Description |---------------|-------|------------- -| Ctrl + k, Ctrl + 0 | + k, + 0 | Unfold all sections -| Ctrl + k, Ctrl + 1..6 | + k, + 1..6 | Fold sections by level 1..6 -| Ctrl + k, Ctrl + 9 | + k, + 9 | Fold all sections, but keep headings of any level visible -| Ctrl + Shift + [ | ^ + + Tab | Fold current section. -| Ctrl + Shift + ] | ^ + + Tab | Unfold current section. -| Ctrl + Shift + Tab | ^ + + Tab | Fold all sections under headings of a certain level. +| Ctrl + k, Ctrl + 0 | + k, + 0 | Unfold all sections +| Ctrl + k, Ctrl + 1..6 | + k, + 1..6 | Fold sections by level 1..6 +| Ctrl + k, Ctrl + 9 | + k, + 9 | Fold all sections, but keep headings of any level visible +| Ctrl + Shift + [ | + + Tab | Fold current section. +| Ctrl + Shift + ] | + + Tab | Unfold current section. +| Ctrl + Shift + Tab | + + Tab | Fold all sections under headings of a certain level. ## Automatic Link Url Folding diff --git a/messages.json b/messages.json index f0a249b6..a5d46db3 100644 --- a/messages.json +++ b/messages.json @@ -43,5 +43,6 @@ "3.1.6": "messages/3.1.6.md", "3.1.7": "messages/3.1.7.md", "3.1.8": "messages/3.1.8.md", - "3.1.9": "messages/3.1.9.md" + "3.1.9": "messages/3.1.9.md", + "3.1.10": "messages/3.1.10.md" } diff --git a/messages/3.1.10.md b/messages/3.1.10.md new file mode 100644 index 00000000..f9512ba1 --- /dev/null +++ b/messages/3.1.10.md @@ -0,0 +1,18 @@ +# MarkdownEditing 3.1.10 Changelog + +Your _MarkdownEditing_ plugin is updated. Enjoy new version. For any type of +feedback you can use [GitHub issues][issues]. + +## Bug Fixes + +* Fix MacOs fold/unfold section key bindings (#724) + +## New Features + +* Add snippets for GitHub admonitions + - ghnote - Note + - ghwarn - Warning + +## Changes + +[issues]: https://github.com/SublimeText-Markdown/MarkdownEditing/issues diff --git a/snippets/Github Note.sublime-snippet b/snippets/Github Note.sublime-snippet new file mode 100644 index 00000000..963c6e39 --- /dev/null +++ b/snippets/Github Note.sublime-snippet @@ -0,0 +1,9 @@ + + **Note** +> +> ${0:enter text} +]]> + ghnote + text.html.markdown - meta.frontmatter - meta.disable-markdown - meta.code-fence - markup.raw + Markdown Admonition + diff --git a/snippets/Github Warning.sublime-snippet b/snippets/Github Warning.sublime-snippet new file mode 100644 index 00000000..c9979d9f --- /dev/null +++ b/snippets/Github Warning.sublime-snippet @@ -0,0 +1,9 @@ + + **Warning** +> +> ${0:enter text} +]]> + ghwarn + text.html.markdown - meta.frontmatter - meta.disable-markdown - meta.code-fence - markup.raw + Markdown Admonition +