Added new snippets, and printing command.

This commit is contained in:
Arthur Carabott 2009-03-23 18:16:03 +00:00
parent 508fb4719e
commit f49e2fbb9a
17 changed files with 275 additions and 2 deletions

View File

@ -0,0 +1,30 @@
<?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>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
word = ENV['TM_CURRENT_WORD']
if !word.nil? and word.size &gt; 0
puts %Q{"#{word}: ".post; #{word}.postln;}end </string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>~@p</string>
<key>name</key>
<string>print variable</string>
<key>output</key>
<string>replaceSelectedText</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>parv</string>
<key>uuid</key>
<string>22BB21A0-D2B7-4540-B1DE-02556BE6F8A7</string>
</dict>
</plist>

View File

@ -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>.classVarNames.dump;</string>
<key>name</key>
<string>All Class Vars</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.acvars</string>
<key>uuid</key>
<string>3FC8E89C-7BAF-4C66-9327-C544EBF53DFE</string>
</dict>
</plist>

View File

@ -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>.instVarNames.dump;</string>
<key>name</key>
<string>All Vars</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.avars</string>
<key>uuid</key>
<string>93CDD123-97D9-40CB-9F63-A6F0A42D8622</string>
</dict>
</plist>

View File

@ -0,0 +1,19 @@
<?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>//
$1.postln;
//
</string>
<key>name</key>
<string>BugNumbers</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>n.</string>
<key>uuid</key>
<string>4C6C9C58-92F3-4FD2-AE39-00F01AC3F7B2</string>
</dict>
</plist>

View File

@ -0,0 +1,18 @@
<?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>while({${1:condition}}, {
${2:do}
});</string>
<key>name</key>
<string>While...</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>while</string>
<key>uuid</key>
<string>D3FF72CE-4B17-47E2-8A3A-E2E4A6BAC859</string>
</dict>
</plist>

16
Snippets/_get.tmSnippet Normal file
View File

@ -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>.get(${1:0}, {|msg| ${2:msg.postln}});</string>
<key>name</key>
<string>.get</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.get</string>
<key>uuid</key>
<string>43E979D3-9639-4DCC-9E57-24A5C72A30F1</string>
</dict>
</plist>

16
Snippets/_set.tmSnippet Normal file
View File

@ -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>.set(\\${1:arg}, ${2:val});</string>
<key>name</key>
<string>.set</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.set</string>
<key>uuid</key>
<string>AB35A021-A800-4B82-B603-295CFD714A5B</string>
</dict>
</plist>

View File

@ -0,0 +1,18 @@
<?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>any { |item, i|
$1
};</string>
<key>name</key>
<string>any ...</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>any</string>
<key>uuid</key>
<string>DF09CE07-5704-4932-8DC7-86A1ECE54401</string>
</dict>
</plist>

View File

@ -0,0 +1,19 @@
<?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>switch ($1)
{$2} {$3}
{$4} {$5};
</string>
<key>name</key>
<string>case copy</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>switch</string>
<key>uuid</key>
<string>A2B8FE76-A086-4FD3-B832-7154B7CE88F4</string>
</dict>
</plist>

19
Snippets/case.tmSnippet Normal file
View File

@ -0,0 +1,19 @@
<?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>case
{$1} {$2}
{$3} {$4};
</string>
<key>name</key>
<string>case</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>case</string>
<key>uuid</key>
<string>44331733-E717-4546-BA68-C254284E1089</string>
</dict>
</plist>

View File

@ -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>.dumpAllMethods;</string>
<key>name</key>
<string>dumpAllMethods</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.dm</string>
<key>uuid</key>
<string>78E00F80-2133-42C8-94E8-C570693BEC8E</string>
</dict>
</plist>

View File

@ -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>.dumpInterface;</string>
<key>name</key>
<string>dumpInterface</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.di</string>
<key>uuid</key>
<string>533A6101-A0FB-4F3B-A94A-E04A8DC46C0F</string>
</dict>
</plist>

View File

@ -0,0 +1,18 @@
<?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>every { |item, i|
$1
};</string>
<key>name</key>
<string>every ...</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>every</string>
<key>uuid</key>
<string>43EED273-EF78-473E-8BF0-650D2FC19CCA</string>
</dict>
</plist>

View File

@ -0,0 +1,18 @@
<?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>if(${1:condition}) {
${2:true}
};</string>
<key>name</key>
<string>if ...</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>if</string>
<key>uuid</key>
<string>44E4E852-1518-4E8C-84F1-9990A1B910ED</string>
</dict>
</plist>

View File

@ -13,7 +13,7 @@
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>if</string>
<string>ife</string>
<key>uuid</key>
<string>C0F1C9B0-6393-4B2B-86B4-40010363DCDE</string>
</dict>

View File

@ -0,0 +1,18 @@
<?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>.makeBundle(${1:0.2}, {
$2
});</string>
<key>name</key>
<string>makeBundle</string>
<key>scope</key>
<string>source.supercollider</string>
<key>tabTrigger</key>
<string>.mb</string>
<key>uuid</key>
<string>66B16E22-D3FB-464F-B820-2FEEFD79DBA5</string>
</dict>
</plist>

View File

@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>.postln</string>
<string>.postln;</string>
<key>name</key>
<string>.postln</string>
<key>scope</key>