Skip to content

Instantly share code, notes, and snippets.

@robjshaw
Forked from justincarter/gist:1306983
Created October 28, 2013 22:01
Show Gist options
  • Save robjshaw/7205580 to your computer and use it in GitHub Desktop.
Save robjshaw/7205580 to your computer and use it in GitHub Desktop.
mac friendly :)
[
// cf tags
//
// cfabort
{ "keys": ["command+shift+a"], "command": "insert_snippet", "args": {"contents": "<cfabort>" } },
// cfdump
{ "keys": ["command+shift+d"], "command": "insert_snippet", "args": {"contents": "<cfdump var=\"#${0:$SELECTION}#\">" } },
// cfoutput
{ "keys": ["command+shift+o"], "command": "insert_snippet", "args": {"contents": "<cfoutput>${0:$SELECTION}</cfoutput>" } },
// super dump
{ "keys": ["command+alt+shift+d"], "command": "insert_snippet", "args": {"contents": "<cfoutput><cfdump var=\"#${0:$SELECTION}#\"></cfoutput><cfabort>" } },
// wrappers
//
// hash
{ "keys": ["command+shift+h"], "command": "insert_snippet", "args": {"contents": "#${0:$SELECTION}#" } },
// single line comment
{ "keys": ["command+shift+m"], "command": "insert_snippet", "args": {"contents": "<!--- ${0:$SELECTION} --->" }, "context":
[
{ "key": "text", "operator": "not_regex_contains", "operand": "\n" }
]
},
// multi line comment
{ "keys": ["command+shift+m"], "command": "insert_snippet", "args": {"contents": "<!--- \n${0:$SELECTION} --->\n" }, "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
// remap sublime text defaults
//
{ "keys": ["command+alt+d"], "command": "duplicate_line" },
{ "keys": ["command+alt+m"], "command": "expand_selection", "args": {"to": "brackets"} }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment