Skip to content

Commit b1e8771

Browse files
committed
Fix for #1160
Bindings for superscript / subscript should now match new syntax scopes
1 parent e3f3cc7 commit b1e8771

File tree

3 files changed

+6
-6
lines changed

3 files changed

+6
-6
lines changed

Default (Linux).sublime-keymap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ LaTeX Package keymap for Linux
460460
{ "keys": ["shift+super+down"], "command": "insert_snippet", "args": {"contents": "_{$1}$0"},
461461
"context":
462462
[
463-
{"key": "selector", "operator": "equal", "operand": "text.tex.latex string.other.math"},
463+
{"key": "selector", "operator": "equal", "operand": "ttext.tex.latex meta.environment.math"},
464464
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
465465
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
466466
]
@@ -469,7 +469,7 @@ LaTeX Package keymap for Linux
469469
{ "keys": ["shift+super+up"], "command": "insert_snippet", "args": {"contents": "^{$1}$0"},
470470
"context":
471471
[
472-
{"key": "selector", "operator": "equal", "operand": "text.tex.latex string.other.math"},
472+
{"key": "selector", "operator": "equal", "operand": "text.tex.latex meta.environment.math"},
473473
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
474474
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
475475
]

Default (OSX).sublime-keymap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ LaTeX Package keymap for OS X
460460
{ "keys": ["shift+super+down"], "command": "insert_snippet", "args": {"contents": "_{$1}$0"},
461461
"context":
462462
[
463-
{"key": "selector", "operator": "equal", "operand": "text.tex.latex string.other.math"},
463+
{"key": "selector", "operator": "equal", "operand": "text.tex.latex meta.environment.math"},
464464
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
465465
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
466466
]
@@ -469,7 +469,7 @@ LaTeX Package keymap for OS X
469469
{ "keys": ["shift+super+up"], "command": "insert_snippet", "args": {"contents": "^{$1}$0"},
470470
"context":
471471
[
472-
{"key": "selector", "operator": "equal", "operand": "text.tex.latex string.other.math"},
472+
{"key": "selector", "operator": "equal", "operand": "text.tex.latex meta.environment.math"},
473473
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
474474
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
475475
]

Default (Windows).sublime-keymap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -460,7 +460,7 @@ LaTeX Package keymap for Windows
460460
{ "keys": ["shift+super+down"], "command": "insert_snippet", "args": {"contents": "_{$1}$0"},
461461
"context":
462462
[
463-
{"key": "selector", "operator": "equal", "operand": "text.tex.latex string.other.math"},
463+
{"key": "selector", "operator": "equal", "operand": "text.tex.latex meta.environment.math"},
464464
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
465465
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
466466
]
@@ -469,7 +469,7 @@ LaTeX Package keymap for Windows
469469
{ "keys": ["shift+super+up"], "command": "insert_snippet", "args": {"contents": "^{$1}$0"},
470470
"context":
471471
[
472-
{"key": "selector", "operator": "equal", "operand": "text.tex.latex string.other.math"},
472+
{"key": "selector", "operator": "equal", "operand": "text.tex.latex meta.environment.math"},
473473
{ "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
474474
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true }
475475
]

0 commit comments

Comments
 (0)