Skip to content

Commit b2202ae

Browse files
committed
Merge pull request #90 from bcrotty/snippets
Fix #83; standardize snippet formatting; remove duplicates
2 parents 84fd972 + feea9da commit b2202ae

11 files changed

+34
-43
lines changed

Snippets/(catch) catch {...}.sublime-snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
12
<snippet>
23
<content><![CDATA[catch ${1:[Exception]}{
34
$2

Snippets/(fin) finally {...}.sublime-snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
12
<snippet>
23
<content><![CDATA[finally {
34
$1
Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
2-
<snippet>
3-
<content><![CDATA[function ${1:funcName} {
4-
$2
5-
}]]></content>
6-
<!-- Optional: Tab trigger to activate the snippet -->
7-
<tabTrigger>fun</tabTrigger>
8-
<!-- Optional: Scope the tab trigger will be active in -->
9-
<scope>source.powershell</scope>
10-
</snippet>
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
2+
<snippet>
3+
<content><![CDATA[function ${1:funcName} {
4+
$2
5+
}]]></content>
6+
<!-- Optional: Tab trigger to activate the snippet -->
7+
<tabTrigger>fun</tabTrigger>
8+
<!-- Optional: Scope the tab trigger will be active in -->
9+
<scope>source.powershell</scope>
10+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
2-
<snippet>
3-
<content><![CDATA[${1:\$mydocs} = [environment]::GetFolderPath([environment+specialfolder]::MyDocuments)]]></content>
4-
<!-- Optional: Tab trigger to activate the snippet -->
5-
<tabTrigger>mydocs</tabTrigger>
6-
<!-- Optional: Scope the tab trigger will be active in -->
7-
<scope>source.powershell</scope>
8-
</snippet>
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
2+
<snippet>
3+
<content><![CDATA[${1:\$MyDocs} = [Environment]::GetFolderPath([Environment+SpecialFolder]::MyDocuments)]]></content>
4+
<!-- Optional: Tab trigger to activate the snippet -->
5+
<tabTrigger>mydocs</tabTrigger>
6+
<!-- Optional: Scope the tab trigger will be active in -->
7+
<scope>source.powershell</scope>
8+
</snippet>
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
<snippet>
2-
<content><![CDATA[set-psdebug ${1:-${2:Step}}$0]]></content>
3-
<tabTrigger>sd</tabTrigger>
4-
<scope>source.powershell</scope>
5-
</snippet>
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
2+
<snippet>
3+
<content><![CDATA[set-psdebug ${1:-${2:Step}}$0]]></content>
4+
<tabTrigger>sd</tabTrigger>
5+
<scope>source.powershell</scope>
6+
</snippet>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
2+
<snippet>
3+
<content><![CDATA[\$Script:thisDir = Split-Path \$MyInvocation.MyCommand.Path -Parent]]></content>
4+
<tabTrigger>thisdir</tabTrigger>
5+
<scope>source.powershell</scope>
6+
</snippet>

Snippets/(tmp) Create Temp File.sublime-snippet renamed to Snippets/(tmp) create temp file.sublime-snippet

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
22
<snippet>
3-
<content><![CDATA[\$tmpfile = [io.path]::GetTempFileName()
3+
<content><![CDATA[\$tmpFile = [IO.Path]::GetTempFileName()
44
]]></content>
55
<!-- Optional: Tab trigger to activate the snippet -->
66
<tabTrigger>tmp</tabTrigger>

Snippets/(try) try {...}.sublime-snippet

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- See http://www.sublimetext.com/docs/snippets for more information -->
12
<snippet>
23
<content><![CDATA[try {
34
$1

Snippets/Heredoc single quote for real.sublime-snippet

Lines changed: 0 additions & 7 deletions
This file was deleted.

Snippets/Heredoc single quote.sublime-snippet

Lines changed: 0 additions & 7 deletions
This file was deleted.

Snippets/Path to Current Module.sublime-snippet

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)