Skip to content
This repository was archived by the owner on May 25, 2019. It is now read-only.

Commit c7a948d

Browse files
committed
- Adds a completion settings file
- Updates readme
1 parent a2f10d9 commit c7a948d

5 files changed

+429
-413
lines changed
+357
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,357 @@
1+
{
2+
/**
3+
Predefined completions
4+
**/
5+
6+
// Here you can add in your custom angular attributes.
7+
// Just override this default property in the 'User' settings.
8+
"extended_attribute_list":[],
9+
10+
// here you can add to, adjust, or remove the default AngularJS element completions
11+
"angular_elements":[
12+
[
13+
"ng-include\tAngularJS",
14+
"ng-include src=\"$1\"${2: scope=\"$3\"}${4: onload=\"$5\"}></ng-include>"
15+
],
16+
[
17+
"ng-view\tAngularJS",
18+
"ng-view></ng-view>"
19+
],
20+
[
21+
"ng-template\tAngularJS",
22+
"script type=\"text/ng-template\"${1: id=\"$2\"}>$0</script>"
23+
],
24+
[
25+
"ng-select\tAngularJS",
26+
"select ngModel=\"${1:string}\"${2:${3: name=\"${4:string}\"}${5: required}${6: ngRequired=\"${7:string}\"}${8: ngOptions=\"${9:comprehension_expression}\"}}>$10</select>$0"
27+
],
28+
[
29+
"ng-textarea\tAngularJS",
30+
"textarea ngModel=\"${1:string}\"${2:${3: name=\"${4:string}\"}${5: required}${6: ngRequired=\"${7:string}\"}${8: ngMinlength=\"${9:number}\"}${10: ngMaxlength=\"${11:number}\"}${12: ngPattern=\"${13:string}\"}${14: ngChange=\"${15:string}\"}}>$16</textarea>$0"
31+
]
32+
],
33+
34+
// List of default filters provided by angular
35+
"filter_list":[
36+
[
37+
"filter: currency\tAngularJS",
38+
"currency${1::symbol}"
39+
],
40+
[
41+
"filter: date\tAngularJS",
42+
"date${1::format}"
43+
],
44+
[
45+
"filter: filter\tAngularJS",
46+
"filter:${1:model}"
47+
],
48+
[
49+
"filter: json\tAngularJS",
50+
"json"
51+
],
52+
[
53+
"filter: limitTo\tAngularJS",
54+
"limitTo:${1:limit}"
55+
],
56+
[
57+
"filter: lowercase\tAngularJS",
58+
"lowercase"
59+
],
60+
[
61+
"filter: number\tAngularJS",
62+
"number${1::fraction}"
63+
],
64+
[
65+
"filter: orderBy\tAngularJS",
66+
"orderBy:${1:predicate}${2::reverse}"
67+
],
68+
[
69+
"filter: uppercase\tAngularJS",
70+
"uppercase"
71+
]
72+
],
73+
74+
// You can copy/paste this property list over to 'User' settings
75+
// and override them if you wish.
76+
"core_attribute_list": [
77+
[
78+
"ng-app\tAngularJS",
79+
"ng-app=\"${1:string}\"$0"
80+
],
81+
[
82+
"ng-bind\tAngularJS",
83+
"ng-bind=\"${1:expression}\"$0"
84+
],
85+
[
86+
"ng-bind-html-unsafe\tAngularJS",
87+
"ng-bind-html-unsafe=\"${1:expression}\"$0"
88+
],
89+
[
90+
"ng-bind-template\tAngularJS",
91+
"ng-bind-template=\"${1:string}\"$0"
92+
],
93+
[
94+
"ng-change\tAngularJS",
95+
"ng-change=\"${1:function()}\"$0"
96+
],
97+
[
98+
"ng-checked\tAngularJS",
99+
"ng-checked=\"${1:expression}\"$0"
100+
],
101+
[
102+
"ng-class\tAngularJS",
103+
"ng-class=\"${1:expression}\"$0"
104+
],
105+
[
106+
"ng-class-even\tAngularJS",
107+
"ng-class-even=\"${1:expression}\"$0"
108+
],
109+
[
110+
"ng-class-odd\tAngularJS",
111+
"ng-class-odd=\"${1:expression}\"$0"
112+
],
113+
[
114+
"ng-click\tAngularJS",
115+
"ng-click=\"${1:expression}\"$0"
116+
],
117+
[
118+
"ng-cloak\tAngularJS",
119+
"ng-cloak$0"
120+
],
121+
[
122+
"ng-controller\tAngularJS",
123+
"ng-controller=\"${1:ControllerName}${2:Ctrl}\"$0"
124+
],
125+
[
126+
"ng-csp\tAngularJS",
127+
"ng-csp$0"
128+
],
129+
[
130+
"ng-dblclick\tAngularJS",
131+
"ng-dblclick=\"${1:expression}\"$0"
132+
],
133+
[
134+
"ng-disabled\tAngularJS",
135+
"ng-disabled=\"${1:expression}\"$0"
136+
],
137+
[
138+
"ng-form\tAngularJS",
139+
"ng-form name=\"${1:string}\"$0"
140+
],
141+
[
142+
"ng-hide\tAngularJS",
143+
"ng-hide=\"${1:expression}\"$0"
144+
],
145+
[
146+
"ng-href\tAngularJS",
147+
"ng-href=\"${1:template}\"$0"
148+
],
149+
[
150+
"ng-include\tAngularJS",
151+
"ng-include=\"${1:string}\" ${2:scope=\"$3\"} ${4:onload=\"$5\"}"
152+
],
153+
[
154+
"ng-init\tAngularJS",
155+
"ng-init=\"${1:expression}\"$0"
156+
],
157+
[
158+
"ng-list\tAngularJS",
159+
"ng-list=\"${1:string}\"$0"
160+
],
161+
[
162+
"ng-model\tAngularJS",
163+
"ng-model$0"
164+
],
165+
[
166+
"ng-mousedown\tAngularJS",
167+
"ng-mousedown=\"${1:expression}\"$0"
168+
],
169+
[
170+
"ng-mouseenter\tAngularJS",
171+
"ng-mouseenter=\"${1:expression}\"$0"
172+
],
173+
[
174+
"ng-mouseleave\tAngularJS",
175+
"ng-mouseleave=\"${1:expression}\"$0"
176+
],
177+
[
178+
"ng-mousemove\tAngularJS",
179+
"ng-mousemove=\"${1:expression}\"$0"
180+
],
181+
[
182+
"ng-mouseover\tAngularJS",
183+
"ng-mouseover=\"${1:expression}\"$0"
184+
],
185+
[
186+
"ng-mouseup\tAngularJS",
187+
"ng-mouseup=\"${1:expression}\"$0"
188+
],
189+
[
190+
"ng-multiple\tAngularJS",
191+
"ng-multiple=\"${1:expression}\"$0"
192+
],
193+
[
194+
"ng-non-bindable\tAngularJS",
195+
"ng-non-bindable$0"
196+
],
197+
[
198+
"ng-options\tAngularJS",
199+
"ng-options=\"${1:select} as ${2:label} for ${3:value} in ${4:array}\""
200+
],
201+
[
202+
"ng-pluralize\tAngularJS",
203+
"ng-pluralize count=\"${1:string}\" when=\"$2\" offset=\"$4\"$0"
204+
],
205+
[
206+
"ng-readonly\tAngularJS",
207+
"ng-readonly=\"${1:expression}\"$0"
208+
],
209+
[
210+
"ng-repeat\tAngularJS",
211+
"ng-repeat=\"${1:(${2:key}, ${3:value})} in ${4:dataset}\"$0"
212+
],
213+
[
214+
"ng-selected\tAngularJS",
215+
"ng-selected=\"${1:string}\"$0"
216+
],
217+
[
218+
"ng-show\tAngularJS",
219+
"ng-show=\"${1:expression}\"$0"
220+
],
221+
[
222+
"ng-src\tAngularJS",
223+
"ng-src=\"${1:template}\"$0"
224+
],
225+
[
226+
"ng-style\tAngularJS",
227+
"ng-style=\"${1:expression}\"$0"
228+
],
229+
[
230+
"ng-submit\tAngularJS",
231+
"ng-submit=\"${1:expression}\"$0"
232+
],
233+
[
234+
"ng-switch\tAngularJS",
235+
"ng-switch on=\"${1:string}\"$0"
236+
],
237+
[
238+
"ng-switch-when\tAngularJS",
239+
"ng-switch-when=\"${1:string}\"$0"
240+
],
241+
[
242+
"ng-switch-default\tAngularJS",
243+
"ng-switch-default$0"
244+
],
245+
[
246+
"ng-transclude\tAngularJS",
247+
"ng-transclude$0"
248+
],
249+
[
250+
"ng-view\tAngularJS",
251+
"ng-view$0"
252+
]
253+
],
254+
255+
"AngularUI_attribute_list": [
256+
[
257+
"ui-jq\tjQuery Passthrough\tAUI",
258+
"ui-jq=\"${1:string}\"$0"
259+
],
260+
[
261+
"ui-options\tUI Options\tAUI",
262+
"ui-options=\"${1:string}\"$0"
263+
],
264+
[
265+
"ui-codemirror\tCodeMirror\tAUI",
266+
"ui-codemirror=\"${1:{theme:'${2:monokai}'\\}}\"$0"
267+
],
268+
[
269+
"ui-event\tEvent Binder\tAUI",
270+
"ui-event=\"{${1:event}:'${2:function()}'}\"$0"
271+
],
272+
[
273+
"ui-calendar\tCalendar\tAUI",
274+
"ui-calendar=\"{${1:height: 450, editable: true}}\"$0"
275+
],
276+
[
277+
"ui-map\tGoogle Maps\tAUI",
278+
"ui-map=\"${1:myMap}\"$0"
279+
],
280+
[
281+
"ui-map-marker\tGoogle Maps\tAUI",
282+
"ui-map-marker=\"${1:myMarkers}[\\$index]\"$0"
283+
],
284+
[
285+
"ui-map-info-window\tGoogle Maps\tAUI",
286+
"ui-map-info-window=\"${1:myInfoWindow}\"$0"
287+
],
288+
[
289+
"ui-date\tDate\tAUI",
290+
"ui-date$0"
291+
],
292+
[
293+
"ui-keypress\tKeypress\tAUI",
294+
"ui-keypress=\"{${1:key identifier}:'${2:keypressCallback}(\\$event)'}\"$0"
295+
],
296+
[
297+
"ui-keydown\tKeypress\tAUI",
298+
"ui-keydown=\"{${1:key identifier}:'${2:keypressCallback}(\\$event)'}\"$0"
299+
],
300+
[
301+
"ui-keyup\tKeypress\tAUI",
302+
"ui-keyup=\"{${1:key identifier}:'${2:keypressCallback}(\\$event)'}\"$0"
303+
],
304+
[
305+
"ui-mask\tUI Options\tAUI",
306+
"ui-mask=\"'${1:99-99-9999}'\"$0"
307+
],
308+
[
309+
"ui-if\tIf\tAUI",
310+
"ui-if=\"${1:false}\"$0"
311+
],
312+
[
313+
"ui-reset\tReset\tAUI",
314+
"ui-reset${1:=\" '${2:Empty}' \"}$0"
315+
],
316+
[
317+
"ui-animate\tAnimate\tAUI",
318+
"ui-animate$0"
319+
],
320+
[
321+
"ui-scrollfix\tScrollfix\tAUI",
322+
"ui-scrollfix${1:=\"${2:number}\"}$0"
323+
],
324+
[
325+
"ui-select2\tSelect2\tAUI",
326+
"ui-select2$0"
327+
],
328+
[
329+
"ui-show\tShow/Hide/Toggle\tAUI",
330+
"ui-show=\"${1:showHide}\"$0"
331+
],
332+
[
333+
"ui-hide\tShow/Hide/Toggle\tAUI",
334+
"ui-hide=\"${1:showHide}\"$0"
335+
],
336+
[
337+
"ui-toggle\tShow/Hide/Toggle\tAUI",
338+
"ui-toggle=\"${1:showHide}\"$0"
339+
],
340+
[
341+
"ui-tinymce\tTinyMCE\tAUI",
342+
"ui-tinymce$0"
343+
],
344+
[
345+
"ui-sortable\tSortable\tAUI",
346+
"ui-sortable${1:=\"{${2:connectWith}:'${3:.children}'\\}\"}$0"
347+
],
348+
[
349+
"ui-currency\tCurrency\tAUI",
350+
"ui-currency${1:=\"{symbol:'${2:\\$}'${3:, zero: '${4:my-zero-class}'}\\}\"}$0"
351+
],
352+
[
353+
"ui-route\tRoute Checking\tAUI",
354+
"ui-route=\"${1:#}/${2:route-path}\"$0"
355+
]
356+
]
357+
}

0 commit comments

Comments
 (0)