Skip to content

Commit

Permalink
Revise bundle development bundle
Browse files Browse the repository at this point in the history
Made the Require Support File (sup⇥) and TextMate Variable (env⇥) snippets use pop-up menus.

Removed “Show Changes” which was for subversion.
  • Loading branch information
sorbits committed Apr 29, 2014
1 parent 1e7a3e3 commit 1815b8c
Show file tree
Hide file tree
Showing 6 changed files with 31 additions and 56 deletions.
25 changes: 0 additions & 25 deletions Commands/Show Changes.tmCommand

This file was deleted.

2 changes: 1 addition & 1 deletion Commands/Show TM_* Shell Variables.plist
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<key>keyEquivalent</key>
<string>^@P</string>
<key>name</key>
<string>Show TM_* Variables</string>
<string>Show TextMate Variables</string>
<key>output</key>
<string>showAsTooltip</string>
<key>standardInput</key>
Expand Down
26 changes: 26 additions & 0 deletions Commands/TextMate Variable (ENV).tmCommand
Original file line number Diff line number Diff line change
@@ -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>command</key>
<string>#!/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby -wKU
keys = ENV.keys.select { |e| e =~ /^TM_/ }
print "ENV['${1|#{keys.join(',')}|}']"
</string>
<key>input</key>
<string>none</string>
<key>name</key>
<string>TextMate Variable (ENV)</string>
<key>outputFormat</key>
<string>snippet</string>
<key>outputLocation</key>
<string>atCaret</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
<string>env</string>
<key>uuid</key>
<string>19C1DA95-E682-4FE1-973F-00994065C520</string>
</dict>
</plist>
16 changes: 0 additions & 16 deletions Snippets/ENV['TM_…'].tmSnippet

This file was deleted.

6 changes: 3 additions & 3 deletions Snippets/Require 'Support:lib:…'.tmSnippet
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<!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>require ENV['TM_${1:S}${1/^(S)|(B)$|.*/(?1:UPPORT_PATH:(?2:UNDLE_SUPPORT))/}'] + '/lib/$2'</string>
<string>require "#{ENV['${1|TM_SUPPORT_PATH,TM_BUNDLE_SUPPORT|}']}/lib/${2:escape.rb}"</string>
<key>name</key>
<string>Require 'Support/lib/…'</string>
<string>Require Support File</string>
<key>scope</key>
<string>source.ruby</string>
<key>tabTrigger</key>
Expand Down
12 changes: 1 addition & 11 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
</array>
<key>items</key>
<array>
<string>B14F0437-4A89-4975-92D5-90A4B7CC2785</string>
<string>2BCAD8AF-1533-43C8-983C-FEDDDE27EA8E</string>
<string>E659010B-BC46-4AAB-95EE-DEDDEC1CD354</string>
<string>------------------------------------</string>
Expand All @@ -43,22 +42,13 @@
<dict>
<key>items</key>
<array>
<string>80CAE306-2C3F-418E-9DAD-B21A244D4807</string>
<string>526FEEF9-9C52-4165-B814-7DAB441084D5</string>
<string>19C1DA95-E682-4FE1-973F-00994065C520</string>
<string>80CAE306-2C3F-418E-9DAD-B21A244D4807</string>
</array>
<key>name</key>
<string>Ruby Snippets</string>
</dict>
<key>B14F0437-4A89-4975-92D5-90A4B7CC2785</key>
<dict>
<key>items</key>
<array>
<string>275BF397-2458-4F2F-B0CE-5CDF68256B69</string>
</array>
<key>name</key>
<string>Subversion</string>
</dict>
<key>E659010B-BC46-4AAB-95EE-DEDDEC1CD354</key>
<dict>
<key>items</key>
Expand Down

0 comments on commit 1815b8c

Please sign in to comment.