Skip to content

Instantly share code, notes, and snippets.

@phantom42
Created December 2, 2015 13:52
Show Gist options
  • Save phantom42/bc0075d46fc34accdc2d to your computer and use it in GitHub Desktop.
Save phantom42/bc0075d46fc34accdc2d to your computer and use it in GitHub Desktop.
sublime keymap contents for coldfusion. makes sublime similar to cfbuilder. enter this in preferences -> package settings -> coldfusion -> key bindings user
[
// cf tags
{ "keys": ["ctrl+shift+a"], "command": "insert_snippet", "args": {"contents": "<cfabort>" } },
{ "keys": ["ctrl+shift+d"], "command": "insert_snippet", "args": {"contents": "<cfdump var=\"#${0:$SELECTION}#\">" }},
{ "keys": ["ctrl+shift+o"], "command": "insert_snippet", "args": {"contents": "<cfoutput>${0:$SELECTION}</cfoutput>"}} ,
// comments & wrappers
// hash
{ "keys": ["ctrl+shift+h"], "command": "insert_snippet", "args": {"contents": "#${0:$SELECTION}#" } },
// single line comment
{ "keys": ["ctrl+shift+m"], "command": "insert_snippet", "args": {"contents": "<!--- ${0:$SELECTION} --->" }, "context":
[
{ "key": "text", "operator": "not_regex_contains", "operand": "\n" }
]
},
// multi line comment
{ "keys": ["ctrl+shift+m"], "command": "insert_snippet", "args": {"contents": "<!--- \n${0:$SELECTION} --->\n" }, "context":
[
{ "key": "text", "operator": "regex_contains", "operand": "\n" }
]
},
// remap sublime defaults
{ "keys": ["ctrl+alt+d"], "command": "duplicate_line" },
{ "keys": ["ctrl+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