-
Notifications
You must be signed in to change notification settings - Fork 586
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[JavaScript] fix tagged template string key bindings regression (#4022)
* [JavaScript] Adjust tagged template string related key bindings This commit... 1. scopes tagged template strings `meta.string.template` to give all of them a common scope without regards of used syntax highlighting 2. uses that scope in key bindings' selectors to enable them in syntax highlighted tagged templates. 3. restrict ` to JavaScript strings by enforcing scope order in selectors in binding 1 and 2 4. merge "selector" keys in binding 3 and 4 * [JavaScript] Add binding to auto-indent content whithin backquotes This commit adds a `enter` key binding to achieve the following, when hitting enter within two backquotes. before: foo = `|` after: foo = ` | ` * [JavaScript] Adjust context key order This commit moves `selector` after `settings` and `selection_empty` as it seems to be the commonly used order in ST's default key bindings. * [JavaScript] Add missing `match_all` attribute to selector context checks This commit aligns selector checks with ST's default key bindings by adding `"match_all": true` to all selector context checks. * [JavaScrit] Simplify keybindings' context checks This commit removes default entries. - operator: equal - operand: true * [JavaScript] Fix typo * [JavaScript] Tweak enter key binding This commit changes `enter` key binding to "Add Line in Braces" macro, as it indents line between backticks using indentation rules instead of forcing it to be indented via `\t`. This works also, if indentation rules decide not to indent backticked contents.
- Loading branch information
Showing
3 changed files
with
104 additions
and
86 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.