Skip to content

Commit

Permalink
Keymap: Fix shift+tab folding instead of unindenting list item
Browse files Browse the repository at this point in the history
Fixes #552
  • Loading branch information
deathaxe committed Jun 3, 2021
1 parent 01a074f commit 710265c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 30 deletions.
11 changes: 1 addition & 10 deletions Default (Linux).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,7 @@
},
{ "keys": ["shift+tab"], "command": "mde_fold_section", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^\\s+", "match_all": true },
{ "key": "following_text", "operator": "not_regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["shift+tab"], "command": "mde_fold_section", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.list", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.raw - markup.list", "match_all": true },
{ "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^\\s+", "match_all": true }
Expand Down
11 changes: 1 addition & 10 deletions Default (OSX).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,7 @@
},
{ "keys": ["shift+tab"], "command": "mde_fold_section", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^\\s+", "match_all": true },
{ "key": "following_text", "operator": "not_regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["shift+tab"], "command": "mde_fold_section", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.list", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.raw - markup.list", "match_all": true },
{ "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^\\s+", "match_all": true }
Expand Down
11 changes: 1 addition & 10 deletions Default (Windows).sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -583,16 +583,7 @@
},
{ "keys": ["shift+tab"], "command": "mde_fold_section", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown", "match_all": true },
{ "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^\\s+", "match_all": true },
{ "key": "following_text", "operator": "not_regex_match", "operand": "^$", "match_all": true }
]
},
{ "keys": ["shift+tab"], "command": "mde_fold_section", "context":
[
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.list", "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.markdown - markup.raw - markup.list", "match_all": true },
{ "key": "setting.mde.keymap_disable.fold_section", "operator": "not_equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "not_regex_match", "operand": "^\\s+", "match_all": true }
Expand Down
1 change: 1 addition & 0 deletions messages/3.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ moved to _Preferences.sublime-settings_.
* automatic centering is enabled only if `mde.keep_centered` is `True` (fixes #259)
* reassign syntax of open markdown files after install or before uninstall (fixes #216,fixes #485)
* reset syntax specific `color_scheme` before plugin is uninstalled (fixes #493)
* Fix shift+tab folding instead of unindenting list (fixes #552)
* linter rule md028 correctly detects empty lines between blockquotes (fixes #564)
* linter rule md027 no longer triggers for indented lists in blockquotes (fixes #565)
* don't highlight words starting with hashtag as heading (fixes #572)
Expand Down

0 comments on commit 710265c

Please sign in to comment.