Skip to content

Commit 5bc73fc

Browse files
unknownunknown
authored andcommitted
�����½���Ŀ
1 parent f8fca3c commit 5bc73fc

File tree

4 files changed

+59
-6
lines changed

4 files changed

+59
-6
lines changed

bundle.rb

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -338,6 +338,15 @@
338338
submenu.menu t(:Code_Template) do |submenu2|
339339
submenu2.command 'tpl_controller'
340340
submenu2.command 'tpl_model'
341+
342+
343+
344+
345+
346+
347+
348+
349+
submenu2.command 'tpl_function'
341350
end
342351
end
343352

cache.zh_CN.yml

Lines changed: 35 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1600,6 +1600,12 @@ children:
16001600
displayName: tpl_model
16011601
path: bundle.rb
16021602
scope: null
1603+
- children: *id001
1604+
commandName: tpl_function
1605+
customProperties: null
1606+
displayName: tpl_function
1607+
path: bundle.rb
1608+
scope: null
16031609
commandName: Code_Template
16041610
customProperties: null
16051611
displayName: Code_Template
@@ -1610,7 +1616,7 @@ children:
16101616
displayName: Codeigniter
16111617
path: bundle.rb
16121618
scope: null
1613-
- !!com.aptana.scripting.model.EnvironmentElement {customProperties: null, displayName: environment-3225f524-71c0-4068-8935-7194ceccc774,
1619+
- !!com.aptana.scripting.model.EnvironmentElement {customProperties: null, displayName: environment-7cb8f3cd-cec2-4002-a79e-e358ea96565a,
16141620
path: bundle.rb, scope: source.php}
16151621
- !!com.aptana.scripting.model.SnippetElement
16161622
async: false
@@ -6094,6 +6100,26 @@ children:
60946100
scope: null
60956101
tags: *id001
60966102
workingDirectoryType: UNDEFINED
6103+
- !!com.aptana.scripting.model.SnippetElement
6104+
async: false
6105+
category: null
6106+
customProperties:
6107+
prefix_values: [':function']
6108+
description: null
6109+
displayName: tpl_function
6110+
expansion: "${1:public/private/protected} function ${2:____}(${3:____}) {\n ${4:____}\n\
6111+
}"
6112+
iconPath: null
6113+
input: [none]
6114+
inputPath: null
6115+
keyBindingMap: null
6116+
outputPath: null
6117+
outputType: insert_as_snippet
6118+
path: snippets\snippets.rb
6119+
runType: current_thread
6120+
scope: null
6121+
tags: *id001
6122+
workingDirectoryType: UNDEFINED
60976123
- !!com.aptana.scripting.model.TemplateElement
60986124
async: false
60996125
customProperties: {replace_parameters: false}
@@ -6108,10 +6134,14 @@ children:
61086134
runType: current_thread
61096135
scope: null
61106136
workingDirectoryType: UNDEFINED
6111-
- !!com.aptana.scripting.model.ProjectTemplateElement {customProperties: null, description: Codeigniter 2.1.2 Project,
6112-
displayName: Sample Project Template, icon: codeigniter.png, id: Sample Project Template,
6113-
location: 'https://nodeload.github.com/EllisLab/CodeIgniter/zipball/2.1-stable',
6114-
path: templates\templates.rb, scope: null, type: ALL}
6137+
- !!com.aptana.scripting.model.ProjectTemplateElement {customProperties: null, description: 基于Codeigniter 2.1.2创建项目架构,
6138+
displayName: CodeIgniter Project, icon: templates/codeigniter.png, id: CodeIgniter Project,
6139+
location: templates/CodeIgniter.zip, path: templates\templates.rb, scope: null,
6140+
type: ALL}
6141+
- !!com.aptana.scripting.model.ProjectTemplateElement {customProperties: null, description: 敏捷CI创建工具,
6142+
displayName: AgileCI Start, icon: templates/codeigniter.png, id: AgileCI Start,
6143+
location: templates/AgileCI_Start.zip, path: templates\templates.rb, scope: null,
6144+
type: ALL}
61156145
copyright: null
61166146
customProperties: {contact_email_rot_13: xiehai@vip.qq.com}
61176147
decreaseIndentMarkers: &id002 {}

snippets/snippets.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1293,6 +1293,13 @@ class ${1:ModelName} extends CI_Model {
12931293
}
12941294
}'
12951295
end
1296+
1297+
snippet "tpl_function" do |s|
1298+
s.trigger = ':function'
1299+
s.expansion = '${1:public/private/protected} function ${2:____}(${3:____}) {
1300+
${4:____}
1301+
}'
1302+
end
12961303
end
12971304

12981305

templates/templates.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,16 @@
66
t.replace_parameters = false
77
end
88

9-
project_template "Sample Project Template" do |t|
9+
project_template "CodeIgniter Project" do |t|
1010
t.type = :all
1111
t.location = "templates/CodeIgniter.zip"
1212
t.description = "基于Codeigniter 2.1.2创建项目架构"
1313
t.icon = "templates/codeigniter.png"
1414
end
15+
16+
project_template "AgileCI Start" do |t|
17+
t.type = :all
18+
t.location = "templates/AgileCI_Start.zip"
19+
t.description = "敏捷CI创建工具"
20+
t.icon = "templates/codeigniter.png"
21+
end

0 commit comments

Comments
 (0)