Skip to content

Commit 88f47f8

Browse files
authored
Fix auto-pairing augmenting cite/ref autofill (#1622)
Fixes #1621
1 parent 881dbf5 commit 88f47f8

File tree

3 files changed

+9
-9
lines changed

3 files changed

+9
-9
lines changed

Default (Linux).sublime-keymap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ LaTeX Package keymap for Linux
453453
"context": [
454454
{ "key": "setting.auto_match_enabled" },
455455
{ "key": "selection_empty", "match_all": true },
456-
{ "key": "selector", "operand": "text.tex.latex" },
456+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
457457
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
458458
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
459459
]
@@ -489,7 +489,7 @@ LaTeX Package keymap for Linux
489489
"context": [
490490
{ "key": "setting.auto_match_enabled" },
491491
{ "key": "selection_empty", "match_all": true },
492-
{ "key": "selector", "operand": "text.tex.latex" },
492+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
493493
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
494494
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
495495
]
@@ -525,7 +525,7 @@ LaTeX Package keymap for Linux
525525
"context": [
526526
{ "key": "setting.auto_match_enabled" },
527527
{ "key": "selection_empty", "match_all": true },
528-
{ "key": "selector", "operand": "text.tex.latex" },
528+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
529529
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
530530
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
531531
]

Default (OSX).sublime-keymap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ LaTeX Package keymap for OS X
453453
"context": [
454454
{ "key": "setting.auto_match_enabled" },
455455
{ "key": "selection_empty", "match_all": true },
456-
{ "key": "selector", "operand": "text.tex.latex" },
456+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
457457
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
458458
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
459459
]
@@ -489,7 +489,7 @@ LaTeX Package keymap for OS X
489489
"context": [
490490
{ "key": "setting.auto_match_enabled" },
491491
{ "key": "selection_empty", "match_all": true },
492-
{ "key": "selector", "operand": "text.tex.latex" },
492+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
493493
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
494494
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
495495
]
@@ -525,7 +525,7 @@ LaTeX Package keymap for OS X
525525
"context": [
526526
{ "key": "setting.auto_match_enabled" },
527527
{ "key": "selection_empty", "match_all": true },
528-
{ "key": "selector", "operand": "text.tex.latex" },
528+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
529529
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
530530
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
531531
]

Default (Windows).sublime-keymap

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -453,7 +453,7 @@ LaTeX Package keymap for Linux
453453
"context": [
454454
{ "key": "setting.auto_match_enabled" },
455455
{ "key": "selection_empty", "match_all": true },
456-
{ "key": "selector", "operand": "text.tex.latex" },
456+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
457457
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
458458
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
459459
]
@@ -489,7 +489,7 @@ LaTeX Package keymap for Linux
489489
"context": [
490490
{ "key": "setting.auto_match_enabled" },
491491
{ "key": "selection_empty", "match_all": true },
492-
{ "key": "selector", "operand": "text.tex.latex" },
492+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
493493
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
494494
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
495495
]
@@ -525,7 +525,7 @@ LaTeX Package keymap for Linux
525525
"context": [
526526
{ "key": "setting.auto_match_enabled" },
527527
{ "key": "selection_empty", "match_all": true },
528-
{ "key": "selector", "operand": "text.tex.latex" },
528+
{ "key": "selector", "operand": "text.tex.latex meta.environment.math - meta.function.citation - meta.function.reference" },
529529
{ "key": "preceding_text", "operator": "regex_contains", "operand": "(?:^|[^\\\\])(\\\\{2})*$", "match_all": true },
530530
{ "key": "following_text", "operator": "regex_contains", "operand": "^(?:\\s|\\)|\\]|\\}|\\$|$)", "match_all": true }
531531
]

0 commit comments

Comments
 (0)