Skip to content

Instantly share code, notes, and snippets.

@rsnemmen
Last active July 13, 2017 00:11
Show Gist options
  • Select an option

  • Save rsnemmen/106781c45d0f94611ab76a602c5e4c58 to your computer and use it in GitHub Desktop.

Select an option

Save rsnemmen/106781c45d0f94611ab76a602c5e4c58 to your computer and use it in GitHub Desktop.
Sublime text 2 macro to indent text for an e-mail response. When you use this, it will turn a line "blah blah blah" from your text file into "> blah blah blah"
[
{
"args":
{
"characters": ">"
},
"command": "insert"
},
{
"args":
{
"characters": " "
},
"command": "insert"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"by": "wordends",
"forward": true
},
"command": "move"
},
{
"args":
{
"characters": "\n"
},
"command": "insert"
},
{
"args": null,
"command": "unindent"
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment