Forked from Schlechtwetterfront/Delete Subword Backward.sublime-macro
Created
March 10, 2020 07:53
-
-
Save Boscop/56a42b7b366efb27a5e1c229550b886c to your computer and use it in GitHub Desktop.
Subword Delete Macros for Sublime Text. Similar to alt+delete/ alt+backspace in other software packages.
This file contains hidden or 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
Show hidden characters
// Delete Backward. | |
// Put this into your user packages folder. Can be found by navigating to Preferences > Browse Packages... in Sublime Text. | |
// Then add something like this to your user Key Bindings. | |
// { "keys": ["alt+backspace"], "command": "run_macro_file", "args": {"file": "res://Packages/User/Delete Subword Backward.sublime-macro"} } | |
[ | |
{ | |
"args": | |
{ | |
"by": "subwords", | |
"extend": true, | |
"forward": false | |
}, | |
"command": "move" | |
}, | |
{ | |
"args": null, | |
"command": "left_delete" | |
} | |
] |
This file contains hidden or 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
// Delete Forward. | |
// Put this into your user packages folder. Can be found by navigating to Preferences > Browse Packages... in Sublime Text. | |
// Then add something like this to your user Key Bindings. | |
// { "keys": ["alt+delete"], "command": "run_macro_file", "args": {"file": "res://Packages/User/Delete Subword Forward.sublime-macro"} } | |
[ | |
{ | |
"args": | |
{ | |
"by": "subword_ends", | |
"extend": true, | |
"forward": true | |
}, | |
"command": "move" | |
}, | |
{ | |
"args": null, | |
"command": "left_delete" | |
} | |
] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment