From 710265cb4cbfb41b91bedab2873ab0691e6a8834 Mon Sep 17 00:00:00 2001 From: DeathAxe Date: Thu, 3 Jun 2021 21:58:35 +0200 Subject: [PATCH] Keymap: Fix shift+tab folding instead of unindenting list item Fixes #552 --- Default (Linux).sublime-keymap | 11 +---------- Default (OSX).sublime-keymap | 11 +---------- Default (Windows).sublime-keymap | 11 +---------- messages/3.0.0.md | 1 + 4 files changed, 4 insertions(+), 30 deletions(-) diff --git a/Default (Linux).sublime-keymap b/Default (Linux).sublime-keymap index f4e5693f..3556c010 100644 --- a/Default (Linux).sublime-keymap +++ b/Default (Linux).sublime-keymap @@ -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 } diff --git a/Default (OSX).sublime-keymap b/Default (OSX).sublime-keymap index 272b3be9..e01d03af 100644 --- a/Default (OSX).sublime-keymap +++ b/Default (OSX).sublime-keymap @@ -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 } diff --git a/Default (Windows).sublime-keymap b/Default (Windows).sublime-keymap index f4e5693f..3556c010 100644 --- a/Default (Windows).sublime-keymap +++ b/Default (Windows).sublime-keymap @@ -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 } diff --git a/messages/3.0.0.md b/messages/3.0.0.md index 3685d4f8..5128ef4c 100644 --- a/messages/3.0.0.md +++ b/messages/3.0.0.md @@ -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)