Skip to content

Commit

Permalink
key binding fixes for writeOutput and writeDump
Browse files Browse the repository at this point in the history
  • Loading branch information
atomi committed Jul 29, 2012
1 parent 44e3672 commit 19f019f
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 30 deletions.
27 changes: 12 additions & 15 deletions Default (OSX).sublime-keymap
Expand Up @@ -114,7 +114,6 @@
{"key": "selector", "operator": "not_equal", "operand": "text.html.cfm.embedded.cfml", "match_all": false }
]
},
// super+shift+o writeOutput();
{
"keys": ["super+shift+o"], "command": "insert_snippet",
"args": { "contents": "writeOutput(${0:$SELECTION});" },
Expand All @@ -133,17 +132,6 @@
{"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
]
},
// super+shift+r with selection <cfscript></cfscript>
{
"keys": ["super+shift+r"], "command": "insert_snippet",
"args": { "contents": "<cfscript>${0:$SELECTION}</cfscript>" },
"context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
{"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
]
},
// super+alt+d <cfdump var="##">
{
"keys": ["super+alt+d"], "command": "insert_snippet",
Expand All @@ -154,13 +142,22 @@
{"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
]
},
// super+alt+d writeDump();
// super+shift+o writeDump();
{
"keys": ["super+alt+d"], "command": "insert_snippet",
"args": { "contents": "writeDump(${1:$SELECTION});" },
"args": { "contents": "writeDump(${0:$SELECTION});" },
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.cfscript, source.cfscript.embedded.cfml", "match_all": true }
{"key": "selector", "operator": "equal", "operand": "source.cfscript", "match_all": true },
{"key": "selector", "operator": "not_equal", "operand": "text.html.cfm.embedded.cfml", "match_all": false }
]
},
{
"keys": ["super+alt+d"], "command": "insert_snippet",
"args": { "contents": "writeDump(${0:$SELECTION});" },
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.cfscript.embedded.cfml", "match_all": true }
]
},
// super+alt+shift+/ javadoc comment
Expand Down
27 changes: 12 additions & 15 deletions Default.sublime-keymap
Expand Up @@ -114,7 +114,6 @@
{"key": "selector", "operator": "not_equal", "operand": "text.html.cfm.embedded.cfml", "match_all": false }
]
},
// ctrl+shift+o writeOutput();
{
"keys": ["ctrl+shift+o"], "command": "insert_snippet",
"args": { "contents": "writeOutput(${0:$SELECTION});" },
Expand All @@ -133,17 +132,6 @@
{"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
]
},
// ctrl+shift+r with selection <cfscript></cfscript>
{
"keys": ["ctrl+shift+r"], "command": "insert_snippet",
"args": { "contents": "<cfscript>${0:$SELECTION}</cfscript>" },
"context":
[
{ "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
{ "key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
{"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
]
},
// ctrl+alt+d <cfdump var="##">
{
"keys": ["ctrl+alt+d"], "command": "insert_snippet",
Expand All @@ -154,13 +142,22 @@
{"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
]
},
// ctrl+alt+d writeDump();
// ctrl+shift+o writeDump();
{
"keys": ["ctrl+alt+d"], "command": "insert_snippet",
"args": { "contents": "writeDump(${1:$SELECTION});" },
"args": { "contents": "writeDump(${0:$SELECTION});" },
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.cfscript, source.cfscript.embedded.cfml", "match_all": true }
{"key": "selector", "operator": "equal", "operand": "source.cfscript", "match_all": true },
{"key": "selector", "operator": "not_equal", "operand": "text.html.cfm.embedded.cfml", "match_all": false }
]
},
{
"keys": ["ctrl+alt+d"], "command": "insert_snippet",
"args": { "contents": "writeDump(${0:$SELECTION});" },
"context":
[
{"key": "selector", "operator": "equal", "operand": "source.cfscript.embedded.cfml", "match_all": true }
]
},
// ctrl+alt+shift+/ javadoc comment
Expand Down

0 comments on commit 19f019f

Please sign in to comment.