Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Touch 2.0 Support

Added Sencha Touch 2.0 support, including new snippets:

* def -> Ext.define
* mod -> Model skeleton
* con -> Controller skeleton
* app -> Application skeleton
* init -> initialize skeleton
* cp -> this.callParent(arguments)

Signed-off-by: Ed Spencer <ed@sencha.com>
  • Loading branch information...
commit 7b1dc6d120dbb0bce4a260bc148eb1b68edf6f22 1 parent 7bd38b8
Ed Spencer authored
View
26 Snippets/Application.tmSnippet
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>Ext.application({
+ name: '${1:MyApp}',
+
+ models: [],
+ views: [],
+ controllers: [],
+
+ launch: function() {
+ $0
+ }
+});</string>
+ <key>name</key>
+ <string>Application</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>app</string>
+ <key>uuid</key>
+ <string>44E7CBE5-87FC-4EB3-B095-A5C635F039D7</string>
+</dict>
+</plist>
View
32 Snippets/Controller.tmSnippet
@@ -0,0 +1,32 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>/**
+ * @class ${1:MyApp}.controller.${2:${TM_FILENAME/(.+)\.js$/$1/}}
+ * @extends ${3:Ext.app.Controller}
+ * ${4:Description}
+ */
+Ext.define('${1:MyApp}.controller.${2:ClassName}', {
+ extend: '${3:Ext.app.Controller}',
+
+ config: {
+ refs: {
+
+ },
+ control: {
+ $0
+ }
+ }
+});</string>
+ <key>name</key>
+ <string>Controller</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>con</string>
+ <key>uuid</key>
+ <string>21F9E11B-D912-4EDA-A83F-94B919A5676B</string>
+</dict>
+</plist>
View
4 Snippets/Ext_apply.tmSnippet
@@ -4,14 +4,14 @@
<dict>
<key>content</key>
<string>Ext.apply(${1:config}, {
- $0
+ $0
});</string>
<key>name</key>
<string>Ext.apply</string>
<key>scope</key>
<string>source.js</string>
<key>tabTrigger</key>
- <string>app</string>
+ <string>apply</string>
<key>uuid</key>
<string>C5F68529-3A28-484A-9DC0-072777C085A9</string>
</dict>
View
2  Snippets/Ext_applyIf to config.tmSnippet
@@ -6,7 +6,7 @@
<string>config = config || {};
Ext.applyIf(config, {
- $0
+ $0
});</string>
<key>name</key>
<string>Ext.applyIf to config</string>
View
2  Snippets/Ext_applyIf.tmSnippet
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>Ext.applyIf(${1:config}, {
- $0
+ $0
});</string>
<key>name</key>
<string>Ext.applyIf</string>
View
27 Snippets/Ext_define.tmSnippet
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>/**
+ * @class ${1:MyNamespace.}${2:${TM_FILENAME/(.+)\.js$/$1/}}
+ * @extends ${3:Object}
+ * ${4:Description}
+ */
+Ext.define('${1:MyNamespace.}${2:ClassName}', {
+ extend: '${3:Object}',
+
+ config: {
+ $0
+ }
+});</string>
+ <key>name</key>
+ <string>Ext.define</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>def</string>
+ <key>uuid</key>
+ <string>82DD2447-BEBD-49F0-841B-6D333769C33B</string>
+</dict>
+</plist>
View
2  Snippets/Ext_each.tmSnippet
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>Ext.each(${1:Array}, ${2:function(${4}) {
- ${0}
+ ${0}
\}}${3:, this});</string>
<key>name</key>
<string>Ext.each</string>
View
2  Snippets/Ext_iterate.tmSnippet
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>Ext.iterate(${1:Object}, ${2:function(key, value) {
- ${0}
+ ${0}
\}}${3:, this});</string>
<key>name</key>
<string>Ext.iterate</string>
View
2  Snippets/Ext_override.tmSnippet
@@ -4,7 +4,7 @@
<dict>
<key>content</key>
<string>Ext.override(${1:Ext.${2:SomeClass}}, {
- $0
+ $0
});</string>
<key>name</key>
<string>Ext.override</string>
View
3  Snippets/JSDoc new line.tmSnippet
@@ -3,7 +3,8 @@
<plist version="1.0">
<dict>
<key>content</key>
- <string>* ${0}</string>
+ <string>
+* ${0}</string>
<key>keyEquivalent</key>
<string>
</string>
View
29 Snippets/Model.tmSnippet
@@ -0,0 +1,29 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>/**
+ * @class ${1:MyApp}.model.${2:${TM_FILENAME/(.+)\.js$/$1/}}
+ * @extends ${3:Ext.data.Model}
+ * ${4:Description}
+ */
+Ext.define('${1:MyApp}.model.${2:ClassName}', {
+ extend: '${3:Ext.data.Model}',
+
+ config: {
+ fields: [
+ $0
+ ]
+ }
+});</string>
+ <key>name</key>
+ <string>Model</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>mod</string>
+ <key>uuid</key>
+ <string>B70D4258-947D-47ED-A1E4-F3452ECD89FB</string>
+</dict>
+</plist>
View
16 Snippets/callParent.tmSnippet
@@ -0,0 +1,16 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>this.callParent(arguments);</string>
+ <key>name</key>
+ <string>callParent</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>cp</string>
+ <key>uuid</key>
+ <string>90EA30A6-E6A4-42A7-925E-BFDE94F09A62</string>
+</dict>
+</plist>
View
20 Snippets/initialize.tmSnippet
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>content</key>
+ <string>initialize: function() {
+ this.callParent(arguments);
+
+ $0
+}</string>
+ <key>name</key>
+ <string>initialize</string>
+ <key>scope</key>
+ <string>source.js</string>
+ <key>tabTrigger</key>
+ <string>init</string>
+ <key>uuid</key>
+ <string>6D73D419-EAA9-4F2E-B819-0BA9E00ABF69</string>
+</dict>
+</plist>
View
6 info.plist
@@ -43,6 +43,12 @@
<string>FEF570CF-B17C-4517-B0C3-F9AEA08ED8AE</string>
<string>F1C2A73F-9387-4013-BB4A-D0D2E414DEF5</string>
<string>1F57324F-1A75-4AD6-B26D-E954031406E5</string>
+ <string>82DD2447-BEBD-49F0-841B-6D333769C33B</string>
+ <string>21F9E11B-D912-4EDA-A83F-94B919A5676B</string>
+ <string>B70D4258-947D-47ED-A1E4-F3452ECD89FB</string>
+ <string>44E7CBE5-87FC-4EB3-B095-A5C635F039D7</string>
+ <string>90EA30A6-E6A4-42A7-925E-BFDE94F09A62</string>
+ <string>6D73D419-EAA9-4F2E-B819-0BA9E00ABF69</string>
</array>
<key>uuid</key>
<string>26563DF7-CEE6-418A-B32C-07B5CBF49E8B</string>
Please sign in to comment.
Something went wrong with that request. Please try again.