-
Notifications
You must be signed in to change notification settings - Fork 81
Fix #83; standardize snippet formatting; remove duplicates #90
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,10 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[function ${1:funcName} { | ||
$2 | ||
}]]></content> | ||
<!-- Optional: Tab trigger to activate the snippet --> | ||
<tabTrigger>fun</tabTrigger> | ||
<!-- Optional: Scope the tab trigger will be active in --> | ||
<scope>source.powershell</scope> | ||
</snippet> | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[function ${1:funcName} { | ||
$2 | ||
}]]></content> | ||
<!-- Optional: Tab trigger to activate the snippet --> | ||
<tabTrigger>fun</tabTrigger> | ||
<!-- Optional: Scope the tab trigger will be active in --> | ||
<scope>source.powershell</scope> | ||
</snippet> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:\$mydocs} = [environment]::GetFolderPath([environment+specialfolder]::MyDocuments)]]></content> | ||
<!-- Optional: Tab trigger to activate the snippet --> | ||
<tabTrigger>mydocs</tabTrigger> | ||
<!-- Optional: Scope the tab trigger will be active in --> | ||
<scope>source.powershell</scope> | ||
</snippet> | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[${1:\$MyDocs} = [Environment]::GetFolderPath([Environment+SpecialFolder]::MyDocuments)]]></content> | ||
<!-- Optional: Tab trigger to activate the snippet --> | ||
<tabTrigger>mydocs</tabTrigger> | ||
<!-- Optional: Scope the tab trigger will be active in --> | ||
<scope>source.powershell</scope> | ||
</snippet> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Renamed the file to standardize snippet names |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,6 @@ | ||
<snippet> | ||
<content><![CDATA[set-psdebug ${1:-${2:Step}}$0]]></content> | ||
<tabTrigger>sd</tabTrigger> | ||
<scope>source.powershell</scope> | ||
</snippet> | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[set-psdebug ${1:-${2:Step}}$0]]></content> | ||
<tabTrigger>sd</tabTrigger> | ||
<scope>source.powershell</scope> | ||
</snippet> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Renamed the file to standardize snippet names |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[\$Script:thisDir = Split-Path \$MyInvocation.MyCommand.Path -Parent]]></content> | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Should it be simple There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Here was my comment on the commit: This was needed for PS 2.0 in order to get the path to the current script, but since 3.0, you can use There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I completely agree with @vors. I think we should remove this snippet in favor of using |
||
<tabTrigger>thisdir</tabTrigger> | ||
<scope>source.powershell</scope> | ||
</snippet> |
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[\$tmpfile = [io.path]::GetTempFileName() | ||
<content><![CDATA[\$tmpFile = [IO.Path]::GetTempFileName() | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Correct to standard capitalization |
||
]]></content> | ||
<!-- Optional: Tab trigger to activate the snippet --> | ||
<tabTrigger>tmp</tabTrigger> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
<!-- See http://www.sublimetext.com/docs/snippets for more information --> | ||
<snippet> | ||
<content><![CDATA[try { | ||
$1 | ||
|
This file was deleted.
This file was deleted.
This file was deleted.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What's changed here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Renamed the file to standardize snippet names