Skip to content

Instantly share code, notes, and snippets.

@danyeah
Created March 17, 2014 11:15
Show Gist options
  • Select an option

  • Save danyeah/9597542 to your computer and use it in GitHub Desktop.

Select an option

Save danyeah/9597542 to your computer and use it in GitHub Desktop.
Sublime macro: { [tab] }
[
{
"args":
{
"characters": " "
},
"command": "insert"
},
{
"args":
{
"contents": "{$0}"
},
"command": "insert_snippet"
},
{
"args":
{
"file": "res://Packages/Default/Add Line in Braces.sublime-macro"
},
"command": "run_macro_file"
},
{
"args": null,
"command": "trim_trailing_white_space"
},
{
"args":
{
"set_translate_tabs": true
},
"command": "unexpand_tabs"
},
{
"args":
{
"characters": " "
},
"command": "insert"
}
]
@danyeah
Copy link
Author

danyeah commented Mar 17, 2014

{ "keys": ["super+enter"], "command": "run_macro_file", "args": {"file": "Packages/User/brackets.sublime-macro"} },

@genva75
Copy link

genva75 commented Mar 17, 2014

That is really good how you have used your
Brackets for your script may you use optional elements in your conversation like cisco use on there CLI command.

@danyeah
Copy link
Author

danyeah commented Apr 11, 2014

genva75: i don't think i understood your comment

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment