Skip to content

Commit

Permalink
Merge branch '3.0.6' into st3176
Browse files Browse the repository at this point in the history
  • Loading branch information
deathaxe committed Oct 3, 2021
2 parents 30f308f + 409e224 commit faad9c8
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 24 deletions.
8 changes: 4 additions & 4 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -1052,15 +1052,15 @@
{ "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Terminate Empty Blockquote.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.quote", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>\\s*(?:[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>(?:\\s*[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])?\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
{ "keys": ["ctrl+keypad_enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Terminate Empty Blockquote.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.quote", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>\\s*(?:[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>(?:\\s*[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])?\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
// Decrease block quote level
Expand Down
8 changes: 4 additions & 4 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -1052,15 +1052,15 @@
{ "keys": ["super+enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Terminate Empty Blockquote.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.quote", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>\\s*(?:[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>(?:\\s*[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])?\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
{ "keys": ["super+keypad_enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Terminate Empty Blockquote.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.quote", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>\\s*(?:[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>(?:\\s*[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])?\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
// Decrease block quote level
Expand Down
8 changes: 4 additions & 4 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -1052,15 +1052,15 @@
{ "keys": ["ctrl+enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Terminate Empty Blockquote.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.quote", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>\\s*(?:[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>(?:\\s*[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])?\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
{ "keys": ["ctrl+keypad_enter"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Terminate Empty Blockquote.sublime-macro"}, "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown markup.quote", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>\\s*(?:[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^[\\s>]*>(?:\\s*[-+*](?:\\s+\\[[ xX]\\])?|\\d+[.)])?\\s*$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^\\s*$", "match_all": true }
]
},
// Decrease block quote level
Expand Down
4 changes: 2 additions & 2 deletions macros/Add Line and Balance Trailing Hashes.sublime-macro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{"command": "expand_selection", "args": {"to": "line"}},
{"command": "move", "args": {"by": "characters", "extend": true, "forward": false}},
{"command": "move_to", "args": {"to": "hardbol", "extend": false} },
{"command": "move_to", "args": {"to": "hardeol", "extend": true} },
{"command": "insert_snippet", "args": {"contents": "${TM_SELECTED_TEXT/^(\\s*(?:>\\s*)*)(#+)(.*?)\\s*#*\\s*$/$1$2$3 $2\n$1/}"}}
]
4 changes: 2 additions & 2 deletions macros/Add Line and Delete Trailing Hashes.sublime-macro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{"command": "expand_selection", "args": {"to": "line"}},
{"command": "move", "args": {"by": "characters", "extend": true, "forward": false}},
{"command": "move_to", "args": {"to": "hardbol", "extend": false} },
{"command": "move_to", "args": {"to": "hardeol", "extend": true} },
{"command": "insert_snippet", "args": {"contents": "${TM_SELECTED_TEXT/^(\\s*(?:>\\s*)*)(#+)(.*?)\\s*#*\\s*$/$1$2$3\n$1/}"}}
]
4 changes: 2 additions & 2 deletions macros/Delete Empty Blockquote.sublime-macro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{"command": "expand_selection", "args": {"to": "line"}},
{"command": "move", "args": {"by": "characters", "extend": true, "forward": false}},
{"command": "move_to", "args": {"to": "hardbol", "extend": false} },
{"command": "move_to", "args": {"to": "hardeol", "extend": true} },
{"command": "insert_snippet", "args": {"contents": "${TM_SELECTED_TEXT/^([\\s>]*)>.*/$1/}"}}
]
4 changes: 2 additions & 2 deletions macros/Delete Empty List Item.sublime-macro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{"command": "expand_selection", "args": {"to": "line"}},
{"command": "move", "args": {"by": "characters", "extend": true, "forward": false}},
{"command": "move_to", "args": {"to": "hardbol", "extend": false} },
{"command": "move_to", "args": {"to": "hardeol", "extend": true} },
{"command": "insert_snippet", "args": {"contents": "${TM_SELECTED_TEXT/^([\\s>]*).*/$1/}"}}
]
6 changes: 3 additions & 3 deletions macros/Terminate Empty Blockquote.sublime-macro
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[
{"command": "expand_selection", "args": {"to": "line"}},
{"command": "move", "args": {"by": "characters", "extend": true, "forward": false}},
{"command": "insert_snippet", "args": {"contents": "${TM_SELECTED_TEXT/^(\\s*).*/\n$1/}"}}
{"command": "move_to", "args": {"to": "hardbol", "extend": false} },
{"command": "move_to", "args": {"to": "hardeol", "extend": true} },
{"command": "insert_snippet", "args": {"contents": "${TM_SELECTED_TEXT/^(\\s*).*$/\n$1/}"}}
]
3 changes: 2 additions & 1 deletion messages.json
Original file line number Diff line number Diff line change
Expand Up @@ -31,5 +31,6 @@
"3.0.2": "messages/3.0.2.md",
"3.0.3": "messages/3.0.3.md",
"3.0.4": "messages/3.0.4.md",
"3.0.5": "messages/3.0.5.md"
"3.0.5": "messages/3.0.5.md",
"3.0.6": "messages/3.0.6.md"
}
11 changes: 11 additions & 0 deletions messages/3.0.6.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# MarkdownEditing 3.0.6 Changelog

Your _MarkdownEditing_ plugin is updated. Enjoy new version. For any type of
feedback you can use [GitHub issues][issues].

## Bug Fixes

* Recently changed macros work on end of file again (fixes #653)
* Enable terminate block quote for non-list items

[issues]: https://github.com/SublimeText-Markdown/MarkdownEditing/issues

0 comments on commit faad9c8

Please sign in to comment.