Skip to content

Commit

Permalink
Backspace delete empty template strings
Browse files Browse the repository at this point in the history
  • Loading branch information
borela committed Aug 19, 2018
1 parent a342d13 commit 9ccb4a3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions Default.sublime-keymap
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,38 @@
"operator": "equal",
"operand": true
}]
},{
// Delete empty “`”.
"keys": [ "backspace" ],
"command": "run_macro_file",
"args": {
"file": "res://Packages/Default/Delete Left Right.sublime-macro"
},
"context": [{
"key": "selector",
"operator": "equal",
"operand": "string.template.js",
"match_all": true
},{
"key": "selection_empty",
"operator": "equal",
"operand": true,
"match_all": true
},{
"key": "preceding_text",
"operator": "regex_contains",
"operand": "`$",
"match_all": true
},{
"key": "following_text",
"operator": "regex_contains",
"operand": "^`",
"match_all": true
},{
"key": "setting.auto_match_enabled",
"operator": "equal",
"operand": true
}]
},{
// JS - Pair interpolation
"keys": [ "{" ],
Expand Down

0 comments on commit 9ccb4a3

Please sign in to comment.