Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Newer
Older
100644 165 lines (164 sloc) 7.529 kb
7250a08 atomi merge linux and windows keyboard shortcut files to Default.sublime-keyma...
atomi authored
1 [
2854bc8 atomi added ctrl+shift+= keybinding
atomi authored
2 // alt+enter terminates statement and adds new line
7250a08 atomi merge linux and windows keyboard shortcut files to Default.sublime-keyma...
atomi authored
3 {
8e8f170 atomi changed terminate statement shortcut to alt (current implemantation was ...
atomi authored
4 "keys": ["alt+enter"], "command": "run_macro_file", "args": {"file": "Packages/ColdFusion/Terminate Statement.sublime-macro"},
7250a08 atomi merge linux and windows keyboard shortcut files to Default.sublime-keyma...
atomi authored
5 "context": [ {"key": "selector", "operator": "equal", "operand": "text.html.cfm,source.cfscript", "match_all": true }]
6 },
7 // javadoc add line
8 {
9 "keys": ["enter"], "command": "run_macro_file", "args": {"file": "Packages/ColdFusion/JavaDoc Add Line.sublime-macro"},
10 "context": [ {"key": "selector", "operator": "equal", "operand": "comment.block.documentation.javadoc", "match_all": true }]
11 },
12 // backspace javadoc delete line
13 {
14 "keys": ["backspace"], "command": "run_macro_file",
15 "args": {"file": "Packages/ColdFusion/JavaDoc Delete Line.sublime-macro"},
16 "context":
17 [
18 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
19 { "key": "preceding_text", "operator": "regex_contains", "operand": "\\*$", "match_all": true },
20 { "key": "selector", "operator": "equal", "operand": "comment.block.documentation.javadoc", "match_all": true }
21 ]
22 },
23 // ctrl+shift+3 <cfoutput>#SELECTION#</cfoutput>
24 {
25 "keys": ["ctrl+shift+3"], "command": "insert_snippet",
26 "args": { "contents": "<cfoutput>#${0:$SELECTION}#</cfoutput>" },
27 "context":
28 [
29 {"key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
30 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
31 ]
32 },
2854bc8 atomi added ctrl+shift+= keybinding
atomi authored
33 // ctrl+shift+= <cfset />
34 {
35 "keys": ["ctrl+shift+="], "command": "insert_snippet",
8cd6ef4 atomi fixes cfset keybinding not using SELECTION
atomi authored
36 "args": { "contents": "<cfset ${0:$SELECTION} />" },
2854bc8 atomi added ctrl+shift+= keybinding
atomi authored
37 "context":
38 [
39 {"key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
40 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
41 ]
42 },
7250a08 atomi merge linux and windows keyboard shortcut files to Default.sublime-keyma...
atomi authored
43 // ctrl+shift+a <cfabort />
44 {
45 "keys": ["ctrl+shift+a"], "command": "insert_snippet",
46 "args": { "contents": "<cfabort />" },
47 "context":
48 [
49 {"key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
50 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
51 ]
52 },
53 // ctrl+shift+o <cfoutput></cfoutput>
54 {
55 "keys": ["ctrl+shift+o"], "command": "insert_snippet",
56 "args": { "contents": "<cfoutput>${0:$SELECTION}</cfoutput>" },
57 "context":
58 [
59 {"key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
60 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
61 ]
62 },
63 // ctrl+shift+r <cfscript>$0</cfscript>
64 {
65 "keys": ["ctrl+shift+r"], "command": "insert_snippet",
66 "args": { "contents": "<cfscript>\n\t$0\n</cfscript>" },
67 "context":
68 [
69 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
70 { "key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
71 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
72 ]
73 },
74 // ctrl+shift+r with selection <cfscript></cfscript>
75 {
76 "keys": ["ctrl+shift+r"], "command": "insert_snippet",
77 "args": { "contents": "<cfscript>${0:$SELECTION}</cfscript>" },
78 "context":
79 [
80 { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
81 { "key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
82 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
83 ]
84 },
85 // ctrl+shift+d <cfdump var="##">
86 {
87 "keys": ["ctrl+shift+d"], "command": "insert_snippet",
88 "args": { "contents": "<cfdump var=\"#${1:$SELECTION}#\" />" },
89 "context":
90 [
91 {"key": "selector", "operator": "equal", "operand": "text.html.cfm", "match_all": true },
92 {"key": "selector", "operator": "not_equal", "operand": "source.cfscript.embedded.cfml,source.sql.embedded.cfml", "match_all": false }
93 ]
94 },
95 // ctrl+shift+c line comment
96 { "keys": ["ctrl+shift+c"], "command": "toggle_comment", "args": { "block": false },
97 "context":
98 [
aee6886 atomi ctrl+shift+c should work in source.cfscript as well
atomi authored
99 { "key": "selector", "operator": "equal", "operand": "text.html.cfm,source.cfscript", "match_all": true }
7250a08 atomi merge linux and windows keyboard shortcut files to Default.sublime-keyma...
atomi authored
100 ]},
101 // ctrl+alt+shift+/ javadoc comment
102 {
103 "keys": ["ctrl+alt+shift+/"], "command": "insert_snippet",
104 "args": { "contents": "/**\n* $0\n*/" },
105 "context":
106 [
107 {"key": "selector", "operator": "equal", "operand": "source.cfscript,source.cfscript.embedded.cfml", "match_all": true }
108 ]
109 },
110 // shift+3 wrap selection with hash
111 {
112 "keys": ["#"], "command": "insert_snippet",
113 "args": {"contents": "#${0:$SELECTION}#"},
114 "context":
115 [
116 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
117 { "key": "selection_empty", "operator": "equal", "operand": false, "match_all": true },
118 { "key": "selector", "operator": "equal", "operand": "text.html.cfm,source.cfscript", "match_all": true }
119 ]
120 },
121 // shift+3 auto_match hash
122 {
123 "keys": ["#"], "command": "insert_snippet",
124 "args": {"contents": "#$0#"},
125 "context":
126 [
127 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
128 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
129 { "key": "selector", "operator": "equal", "operand": "text.html.cfm,source.cfscript", "match_all": true }
130 ]
131 },
132 // shift+3 move cursor forward to close hash
133 {
134 "keys": ["#"], "command": "move",
135 "args": {"by": "characters", "forward": true},
136 "context":
137 [
138 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
139 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
140 { "key": "following_text", "operator": "regex_contains", "operand": "^#", "match_all": true },
141 { "key": "selector", "operator": "equal", "operand": "text.html.cfm,source.cfscript", "match_all": true }
142 ]
143 },
144 // backspace removes both hash marks
145 {
146 "keys": ["backspace"], "command": "run_macro_file",
147 "args": {"file": "Packages/Default/Delete Left Right.sublime-macro"},
148 "context":
149 [
150 { "key": "setting.auto_match_enabled", "operator": "equal", "operand": true },
151 { "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
152 { "key": "preceding_text", "operator": "regex_contains", "operand": "#$", "match_all": true },
153 { "key": "following_text", "operator": "regex_contains", "operand": "^#", "match_all": true },
154 { "key": "selector", "operator": "equal", "operand": "text.html.cfm,source.cfscript", "match_all": true }
155 ]
156 },
157 /***************
158 overridden sublime keyboard shortcuts
159 */
160 // ctrl+alt+d
161 { "keys": ["ctrl+alt+d"], "command": "duplicate_line"},
162 // ctrl+alt+a
163 { "keys": ["ctrl+alt+a"], "command": "expand_selection", "args": {"to": "tag"}}
164 ]
Something went wrong with that request. Please try again.