|
205 | 205 | ] |
206 | 206 | }, |
207 | 207 |
|
| 208 | + // |
| 209 | + // Auto-Pairing Highlight |
| 210 | + // |
| 211 | + |
| 212 | + { "keys": ["="], "command": "insert_snippet", "args": {"contents": "==${0:$SELECTION}=="}, "context": |
| 213 | + [ |
| 214 | + { "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.kbd", "match_all": true }, |
| 215 | + { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, |
| 216 | + { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true } |
| 217 | + ] |
| 218 | + }, |
| 219 | + { "keys": ["backspace"], "command": "run_macro_file", "args": {"file": "Packages/MarkdownEditing/macros/Delete Left Right 2.sublime-macro"}, "context": |
| 220 | + [ |
| 221 | + { "key": "selector", "operator": "equal", "operand": "text.html.markdown - meta.frontmatter - meta.disable-markdown - markup.raw - markup.kbd", "match_all": true }, |
| 222 | + { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true }, |
| 223 | + { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }, |
| 224 | + { "key": "preceding_text", "operator": "regex_contains", "operand": "==$", "match_all": true }, |
| 225 | + { "key": "following_text", "operator": "regex_contains", "operand": "^==", "match_all": true } |
| 226 | + ] |
| 227 | + }, |
| 228 | + |
208 | 229 | // |
209 | 230 | // Auto-Pairing Strike Through |
210 | 231 | // |
|
0 commit comments