Skip to content

Instantly share code, notes, and snippets.

Show Gist options
  • Save Schlechtwetterfront/2d44419ab0cc5e2984fb56621c9da78b to your computer and use it in GitHub Desktop.
Save Schlechtwetterfront/2d44419ab0cc5e2984fb56621c9da78b to your computer and use it in GitHub Desktop.

Revisions

  1. Schlechtwetterfront created this gist Jun 23, 2016.
    19 changes: 19 additions & 0 deletions Delete Subword Backward.sublime-macro
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    // 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"
    }
    ]
    19 changes: 19 additions & 0 deletions Delete Subword Forward.sublime-macro
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,19 @@
    // 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"
    }
    ]