jqueryplugingen 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +7 -0
- data/Manifest.txt +160 -1
- data/README.rdoc +1 -3
- data/bundles/JavaScript jQuery.tmbundle/Commands/Documentation for Word : Selection.tmCommand +68 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$ (Select DOM Element).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$(this).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajax(hash).tmSnippet +28 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxError.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxSend.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxSetup.tmSnippet +28 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_ajaxSuccess.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_get.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_getIfModified.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_getJSON.tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_getScript.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_post.tmSnippet +23 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/$_trim.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:checked.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:contains('test').tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:disabled.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:empty.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:enabled.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:eq(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:even.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:first-child.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:first-of-type.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:first.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:gt(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:hidden.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:last-child.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:last-of-type.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:last.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:lt(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:not(s).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:nth-child(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:nth-last-child(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:nth-of-type(n).tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:odd.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:only-child.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:only-of-type.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:parent.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:root.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/:visible.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/add.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/addClass.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/after.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/ajaxStart.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/ajaxStop.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/animate.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/append.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/appendTo.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/attr(hash).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/attr.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/before.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/bind.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/blur.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/change.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/children.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/click.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/clone.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/contains.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/css(hash).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/css.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/dblclick.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/each.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/end.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/error.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeIn - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeIn.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeOut - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeOut.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeTo - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/fadeTo.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/filter.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/find.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/focus.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/get.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/height.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/hide - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/hide.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/hover.tmSnippet +20 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/html.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/insertAfter.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/insertBefore.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/is.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/load (AHAH).tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/load.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/loadIfModified.tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mousedown.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mousemove.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mouseout.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mouseover.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/mouseup.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/next.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/not.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/one.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/parent.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/parents.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/prepend.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/prependTo.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/prev.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/ready.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/remove.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/removeAttr.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/removeClass.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/reset.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/resize.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/scroll.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/select.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/show - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/show.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/siblings.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/size.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideDown - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideDown.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideToggle.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideUp - with callback.tmSnippet +19 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/slideUp.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/submit.tmSnippet +18 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/text.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/toggle (show:hide).tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/toggle.tmSnippet +21 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/toggleClass.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/trigger.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/unbind.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/val.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/width.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Snippets/wrap.tmSnippet +16 -0
- data/bundles/JavaScript jQuery.tmbundle/Syntaxes/jQuery (JavaScript).tmLanguage +440 -0
- data/bundles/JavaScript jQuery.tmbundle/info.plist +387 -0
- data/bundles/JavaScript.tmbundle/Commands/Copy as Bookmarklet to Clipboard.tmCommand +54 -0
- data/bundles/JavaScript.tmbundle/Commands/Documentation for Word.plist +30 -0
- data/bundles/JavaScript.tmbundle/Commands/New Function.tmCommand +28 -0
- data/bundles/JavaScript.tmbundle/Commands/New Method.tmCommand +28 -0
- data/bundles/JavaScript.tmbundle/Commands/Reformat Document : Selection.tmCommand +50 -0
- data/bundles/JavaScript.tmbundle/Preferences/Comments.tmPreferences +36 -0
- data/bundles/JavaScript.tmbundle/Preferences/JavaScript Indent.tmPreferences +19 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Banned.tmPreferences +17 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Class.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Instance.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Sub 1.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Preferences/Symbol List Sub 2.tmPreferences +21 -0
- data/bundles/JavaScript.tmbundle/Snippets/Get Elements.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object Method String.tmSnippet +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object Method.tmSnippet +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object Value JS.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/Object key /342/200/224 key: /"value/".tmSnippet" +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/Prototype (proto).plist +19 -0
- data/bundles/JavaScript.tmbundle/Snippets/for (/342/200/246) {/342/200/246} (faster).tmSnippet" +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/for (/342/200/246) {/342/200/246}.tmSnippet" +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/function (fun).plist +18 -0
- data/bundles/JavaScript.tmbundle/Snippets/function.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/if ___ else.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/if.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Snippets/setTimeout function.tmSnippet +16 -0
- data/bundles/JavaScript.tmbundle/Support/dev_guru_index.gz +0 -0
- data/bundles/JavaScript.tmbundle/Support/lib/beautify.php +557 -0
- data/bundles/JavaScript.tmbundle/Syntaxes/JavaScript.plist +712 -0
- data/bundles/JavaScript.tmbundle/info.plist +136 -0
- data/jQuery-Plugin-Generator.tmproj +190 -2
- data/lib/jquery_plugin_gen.rb +3 -5
- data/lib/jquery_plugin_gen/quick_template.rb +2 -2
- data/lib/jquery_plugin_gen/support/bundles.rake +28 -0
- data/lib/jquery_plugin_gen/support/jquery.rake +143 -0
- data/lib/jquery_plugin_gen/tasks.rb +5 -0
- data/lib/templates/Rakefile.erb +8 -2
- data/spec/data/templates/Rakefile +8 -2
- metadata +162 -3
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>beforeRunningCommand</key>
|
6
|
+
<string>nop</string>
|
7
|
+
<key>command</key>
|
8
|
+
<string>cat <<SNIPPET
|
9
|
+
function ${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}(\${1:args}) {
|
10
|
+
\$0
|
11
|
+
}
|
12
|
+
SNIPPET</string>
|
13
|
+
<key>fallbackInput</key>
|
14
|
+
<string>word</string>
|
15
|
+
<key>input</key>
|
16
|
+
<string>selection</string>
|
17
|
+
<key>keyEquivalent</key>
|
18
|
+
<string>$
|
19
|
+
<key>name</key>
|
20
|
+
<string>New Function</string>
|
21
|
+
<key>output</key>
|
22
|
+
<string>insertAsSnippet</string>
|
23
|
+
<key>scope</key>
|
24
|
+
<string>source.js</string>
|
25
|
+
<key>uuid</key>
|
26
|
+
<string>73951799-AC15-40A6-81DB-EC051AB4A033</string>
|
27
|
+
</dict>
|
28
|
+
</plist>
|
@@ -0,0 +1,28 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>beforeRunningCommand</key>
|
6
|
+
<string>nop</string>
|
7
|
+
<key>command</key>
|
8
|
+
<string>cat <<SNIPPET
|
9
|
+
${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}: function(\${1:args}) {
|
10
|
+
\$0
|
11
|
+
}\${2:,}
|
12
|
+
SNIPPET</string>
|
13
|
+
<key>fallbackInput</key>
|
14
|
+
<string>word</string>
|
15
|
+
<key>input</key>
|
16
|
+
<string>selection</string>
|
17
|
+
<key>keyEquivalent</key>
|
18
|
+
<string>~$
|
19
|
+
<key>name</key>
|
20
|
+
<string>New Method</string>
|
21
|
+
<key>output</key>
|
22
|
+
<string>insertAsSnippet</string>
|
23
|
+
<key>scope</key>
|
24
|
+
<string>source.js</string>
|
25
|
+
<key>uuid</key>
|
26
|
+
<string>1717B5AE-209B-4548-9155-9E88A7230C1C</string>
|
27
|
+
</dict>
|
28
|
+
</plist>
|
@@ -0,0 +1,50 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>beforeRunningCommand</key>
|
6
|
+
<string>nop</string>
|
7
|
+
<key>command</key>
|
8
|
+
<string>#!/usr/bin/env php
|
9
|
+
<?php
|
10
|
+
/*
|
11
|
+
|
12
|
+
JS Beautifier
|
13
|
+
|
14
|
+
(c) 2007, Einars "elfz" Lielmanis
|
15
|
+
|
16
|
+
http://elfz.laacz.lv/beautify/
|
17
|
+
|
18
|
+
You are free to use this in any way you want, in case you find this useful or working for you.
|
19
|
+
|
20
|
+
Ported with permission to TextMate by Ale Muñoz.
|
21
|
+
|
22
|
+
(Based on v42 of JS Beautifier)
|
23
|
+
|
24
|
+
*/
|
25
|
+
|
26
|
+
require($_ENV['TM_BUNDLE_SUPPORT'] . '/lib/beautify.php');
|
27
|
+
|
28
|
+
if (isset($_ENV['TM_SELECTED_TEXT'])) {
|
29
|
+
$input = get_magic_quotes_gpc() ? stripslashes($_ENV['TM_SELECTED_TEXT']) : $_ENV['TM_SELECTED_TEXT'];
|
30
|
+
} else {
|
31
|
+
$input = file_get_contents('php://stdin');
|
32
|
+
}
|
33
|
+
|
34
|
+
print js_beautify($input);
|
35
|
+
|
36
|
+
?></string>
|
37
|
+
<key>input</key>
|
38
|
+
<string>selection</string>
|
39
|
+
<key>keyEquivalent</key>
|
40
|
+
<string>^H</string>
|
41
|
+
<key>name</key>
|
42
|
+
<string>Reformat Document / Selection</string>
|
43
|
+
<key>output</key>
|
44
|
+
<string>replaceSelectedText</string>
|
45
|
+
<key>scope</key>
|
46
|
+
<string>source.js</string>
|
47
|
+
<key>uuid</key>
|
48
|
+
<string>36EC03E9-EFF4-479A-AB90-8DFA16800642</string>
|
49
|
+
</dict>
|
50
|
+
</plist>
|
@@ -0,0 +1,36 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>Comments</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>shellVariables</key>
|
12
|
+
<array>
|
13
|
+
<dict>
|
14
|
+
<key>name</key>
|
15
|
+
<string>TM_COMMENT_START</string>
|
16
|
+
<key>value</key>
|
17
|
+
<string>// </string>
|
18
|
+
</dict>
|
19
|
+
<dict>
|
20
|
+
<key>name</key>
|
21
|
+
<string>TM_COMMENT_START_2</string>
|
22
|
+
<key>value</key>
|
23
|
+
<string>/*</string>
|
24
|
+
</dict>
|
25
|
+
<dict>
|
26
|
+
<key>name</key>
|
27
|
+
<string>TM_COMMENT_END_2</string>
|
28
|
+
<key>value</key>
|
29
|
+
<string>*/</string>
|
30
|
+
</dict>
|
31
|
+
</array>
|
32
|
+
</dict>
|
33
|
+
<key>uuid</key>
|
34
|
+
<string>A67A8BD9-A951-406F-9175-018DD4B52FD1</string>
|
35
|
+
</dict>
|
36
|
+
</plist>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>JavaScript Indent</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>decreaseIndentPattern</key>
|
12
|
+
<string>^(.*\*/)?\s*(\}|\))([^{]*\{)?([;,]?\s*|\.[^{]*|\s*\)[;\s]*)$</string>
|
13
|
+
<key>increaseIndentPattern</key>
|
14
|
+
<string>^.*(\{[^}"']*|\([^)"']*)$</string>
|
15
|
+
</dict>
|
16
|
+
<key>uuid</key>
|
17
|
+
<string>BC062860-3346-4D3B-8421-C5543F83D11F</string>
|
18
|
+
</dict>
|
19
|
+
</plist>
|
@@ -0,0 +1,17 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>Symbol List Banned</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js meta.property.function entity.name.function</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>showInSymbolList</key>
|
12
|
+
<string>0</string>
|
13
|
+
</dict>
|
14
|
+
<key>uuid</key>
|
15
|
+
<string>834BC727-6B31-4073-A161-4823227219EF</string>
|
16
|
+
</dict>
|
17
|
+
</plist>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>Symbol List Class</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js entity.name.type.class</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>showInSymbolList</key>
|
12
|
+
<string>1</string>
|
13
|
+
<key>symbolTransformation</key>
|
14
|
+
<string>
|
15
|
+
s/^/• /g;
|
16
|
+
</string>
|
17
|
+
</dict>
|
18
|
+
<key>uuid</key>
|
19
|
+
<string>3CEA49B2-A5C5-405C-82E2-B8B668877C37</string>
|
20
|
+
</dict>
|
21
|
+
</plist>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>Symbol List Instance</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js entity.name.instance</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>showInSymbolList</key>
|
12
|
+
<string>1</string>
|
13
|
+
<key>symbolTransformation</key>
|
14
|
+
<string>
|
15
|
+
s/^/\t/g;
|
16
|
+
</string>
|
17
|
+
</dict>
|
18
|
+
<key>uuid</key>
|
19
|
+
<string>E6EB7CC8-04E8-43A9-93B2-BC9EF5BA862B</string>
|
20
|
+
</dict>
|
21
|
+
</plist>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>Symbol List Sub 1</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js object.property.function -(meta.group meta.group)</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>showInSymbolList</key>
|
12
|
+
<string>1</string>
|
13
|
+
<key>symbolTransformation</key>
|
14
|
+
<string>
|
15
|
+
s/^/ :/g;
|
16
|
+
</string>
|
17
|
+
</dict>
|
18
|
+
<key>uuid</key>
|
19
|
+
<string>73557394-4F0F-4DD3-8029-EEE8201AC7F5</string>
|
20
|
+
</dict>
|
21
|
+
</plist>
|
@@ -0,0 +1,21 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>name</key>
|
6
|
+
<string>Symbol List Sub 2</string>
|
7
|
+
<key>scope</key>
|
8
|
+
<string>source.js meta.group meta.group object.property.function</string>
|
9
|
+
<key>settings</key>
|
10
|
+
<dict>
|
11
|
+
<key>showInSymbolList</key>
|
12
|
+
<string>1</string>
|
13
|
+
<key>symbolTransformation</key>
|
14
|
+
<string>
|
15
|
+
s/^/ :/g;
|
16
|
+
</string>
|
17
|
+
</dict>
|
18
|
+
<key>uuid</key>
|
19
|
+
<string>51841DDB-C2A4-461C-A8AB-6C124AD50EAE</string>
|
20
|
+
</dict>
|
21
|
+
</plist>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>getElement${1/(T)|.*/(?1:s)/}By${1:T}${1/(T)|(I)|.*/(?1:agName)(?2:d)/}('$2')</string>
|
7
|
+
<key>name</key>
|
8
|
+
<string>Get Elements</string>
|
9
|
+
<key>scope</key>
|
10
|
+
<string>source.js</string>
|
11
|
+
<key>tabTrigger</key>
|
12
|
+
<string>get</string>
|
13
|
+
<key>uuid</key>
|
14
|
+
<string>9E0E3BCC-7F20-4D6B-891D-A44D6EC56E31</string>
|
15
|
+
</dict>
|
16
|
+
</plist>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>'${1:${2:#thing}:${3:click}}': function(element){
|
7
|
+
$0
|
8
|
+
}${10:,}</string>
|
9
|
+
<key>name</key>
|
10
|
+
<string>Object Method String</string>
|
11
|
+
<key>scope</key>
|
12
|
+
<string>source.js</string>
|
13
|
+
<key>tabTrigger</key>
|
14
|
+
<string>'':f</string>
|
15
|
+
<key>uuid</key>
|
16
|
+
<string>7B9AEFCC-B450-416D-8527-430FE2A08568</string>
|
17
|
+
</dict>
|
18
|
+
</plist>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>${1:method_name}: function(${3:attribute}){
|
7
|
+
$0
|
8
|
+
}${10:,}</string>
|
9
|
+
<key>name</key>
|
10
|
+
<string>Object Method</string>
|
11
|
+
<key>scope</key>
|
12
|
+
<string>source.js</string>
|
13
|
+
<key>tabTrigger</key>
|
14
|
+
<string>:f</string>
|
15
|
+
<key>uuid</key>
|
16
|
+
<string>77065D69-742A-4FF0-9A41-AD211DFBE72F</string>
|
17
|
+
</dict>
|
18
|
+
</plist>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>${1:value_name}:${0:value},</string>
|
7
|
+
<key>name</key>
|
8
|
+
<string>Object Value JS</string>
|
9
|
+
<key>scope</key>
|
10
|
+
<string>source.js</string>
|
11
|
+
<key>tabTrigger</key>
|
12
|
+
<string>:,</string>
|
13
|
+
<key>uuid</key>
|
14
|
+
<string>AD506BEC-B33C-4168-A900-0A4D386A4B05</string>
|
15
|
+
</dict>
|
16
|
+
</plist>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>${1:key}: ${2:"${3:value}"}${4:, }</string>
|
7
|
+
<key>keyEquivalent</key>
|
8
|
+
<string>~:</string>
|
9
|
+
<key>name</key>
|
10
|
+
<string>Object key — key: "value"</string>
|
11
|
+
<key>scope</key>
|
12
|
+
<string>source.js</string>
|
13
|
+
<key>tabTrigger</key>
|
14
|
+
<string>:</string>
|
15
|
+
<key>uuid</key>
|
16
|
+
<string>DC8B46FB-8ADA-45EA-8F36-94C807A0D302</string>
|
17
|
+
</dict>
|
18
|
+
</plist>
|
@@ -0,0 +1,19 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>${1:class_name}.prototype.${2:method_name} = function(${3:first_argument}) {
|
7
|
+
${0:// body...}
|
8
|
+
};
|
9
|
+
</string>
|
10
|
+
<key>name</key>
|
11
|
+
<string>Prototype</string>
|
12
|
+
<key>scope</key>
|
13
|
+
<string>source.js</string>
|
14
|
+
<key>tabTrigger</key>
|
15
|
+
<string>proto</string>
|
16
|
+
<key>uuid</key>
|
17
|
+
<string>2F96136B-0193-42F5-90FC-B6F456A3AD77</string>
|
18
|
+
</dict>
|
19
|
+
</plist>
|
data/bundles/JavaScript.tmbundle/Snippets/for (/342/200/246) {/342/200/246} (faster).tmSnippet"
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>for (var ${20:i} = ${1:Things}.length - 1; ${20:i} >= 0; ${20:i}--){
|
7
|
+
${100:${1:Things}[${20:i}]}$0
|
8
|
+
};</string>
|
9
|
+
<key>name</key>
|
10
|
+
<string>for (…) {…} (Improved Native For-Loop)</string>
|
11
|
+
<key>scope</key>
|
12
|
+
<string>source.js</string>
|
13
|
+
<key>tabTrigger</key>
|
14
|
+
<string>for</string>
|
15
|
+
<key>uuid</key>
|
16
|
+
<string>C207B7C3-5597-4873-8AAD-C46FB8842AF2</string>
|
17
|
+
</dict>
|
18
|
+
</plist>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>for (var ${20:i}=0; ${20:i} < ${1:Things}.length; ${20:i}++) {
|
7
|
+
${100:${1:Things}[${20:i}]}$0
|
8
|
+
};</string>
|
9
|
+
<key>name</key>
|
10
|
+
<string>for (…) {…}</string>
|
11
|
+
<key>scope</key>
|
12
|
+
<string>source.js</string>
|
13
|
+
<key>tabTrigger</key>
|
14
|
+
<string>for</string>
|
15
|
+
<key>uuid</key>
|
16
|
+
<string>011C4681-FBEC-4891-9326-3DECFCDED6D6</string>
|
17
|
+
</dict>
|
18
|
+
</plist>
|
@@ -0,0 +1,18 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
3
|
+
<plist version="1.0">
|
4
|
+
<dict>
|
5
|
+
<key>content</key>
|
6
|
+
<string>function ${1:function_name} (${2:argument}) {
|
7
|
+
${0:// body...}
|
8
|
+
}</string>
|
9
|
+
<key>name</key>
|
10
|
+
<string>Function</string>
|
11
|
+
<key>scope</key>
|
12
|
+
<string>source.js</string>
|
13
|
+
<key>tabTrigger</key>
|
14
|
+
<string>fun</string>
|
15
|
+
<key>uuid</key>
|
16
|
+
<string>F0E4FB6A-4878-48C6-A777-62438DF1E14F</string>
|
17
|
+
</dict>
|
18
|
+
</plist>
|