Commit 152f4da9ba257c1445306ff0393cbc6fa2b74fb6
- Date: Thu Apr 10 22:22:18 +0000 2008
- Committer: Tim Harper (timcharper@gmail.com)
- Author: Tim Harper (timcharper@gmail.com)
- Commit SHA1: 152f4da9ba257c1445306ff0393cbc6fa2b74fb6
- Tree SHA1: de0600b4240890b2bc6c7fa68aa267e7103777d1
close all windows but current is really not that useful. Instead, use ctrl-command-w, then commant-t / enter.
Commit diff
| |   |
| 0 | | <?xml version="1.0" encoding="UTF-8"?> |
| 1 | | <!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd"> |
| 2 | | <plist version="1.0"> |
| 3 | | <dict> |
| 4 | | <key>beforeRunningCommand</key> |
| 5 | | <string>nop</string> |
| 6 | | <key>command</key> |
| 7 | | <string>#!/usr/bin/env ruby |
| 8 | | |
| 9 | | project_filepath = ENV['TM_PROJECT_FILEPATH'] |
| 10 | | current_filepath = ENV['TM_FILEPATH'] |
| 11 | | |
| 12 | | contents = File.read(project_filepath) |
| 13 | | |
| 14 | | `"$TMTOOLS" close allWindows` |
| 15 | | |
| 16 | | contents.gsub!(/(<key>openDocuments<\/key>.+?<array>.+?<string>).+?(<\/string>\s+<\/array>)/m) { "#{$1}#{current_filepath}#{$2}" } |
| 17 | | |
| 18 | | File.open(project_filepath, "wb") {|f| f.puts(contents) } |
| 19 | | |
| 20 | | sleep 0.5 |
| 21 | | |
| 22 | | `open "#{project_filepath}"`</string> |
| 23 | | <key>input</key> |
| 24 | | <string>none</string> |
| 25 | | <key>keyEquivalent</key> |
| 26 | | <string>^~w</string> |
| 27 | | <key>name</key> |
| 28 | | <string>Close all windows but current</string> |
| 29 | | <key>output</key> |
| 30 | | <string>showAsTooltip</string> |
| 31 | | <key>uuid</key> |
| 32 | | <string>7B7488CD-ACC9-49F9-BE91-B3150326C3D0</string> |
| 33 | | </dict> |
| 34 | | </plist> |
| toggle raw diff |
--- a/Commands/untitled.tmCommand
+++ /dev/null
@@ -1,35 +0,0 @@
-<?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
-
-project_filepath = ENV['TM_PROJECT_FILEPATH']
-current_filepath = ENV['TM_FILEPATH']
-
-contents = File.read(project_filepath)
-
-`"$TMTOOLS" close allWindows`
-
-contents.gsub!(/(<key>openDocuments<\/key>.+?<array>.+?<string>).+?(<\/string>\s+<\/array>)/m) { "#{$1}#{current_filepath}#{$2}" }
-
-File.open(project_filepath, "wb") {|f| f.puts(contents) }
-
-sleep 0.5
-
-`open "#{project_filepath}"`</string>
- <key>input</key>
- <string>none</string>
- <key>keyEquivalent</key>
- <string>^~w</string>
- <key>name</key>
- <string>Close all windows but current</string>
- <key>output</key>
- <string>showAsTooltip</string>
- <key>uuid</key>
- <string>7B7488CD-ACC9-49F9-BE91-B3150326C3D0</string>
-</dict>
-</plist> |
| |   |
| 97 | 97 | <string>E2D2F075-81CE-4604-9813-A08145995F96</string> |
| 98 | 98 | <string>23D5F39E-73CA-43FC-90B3-18BDBEDDD56B</string> |
| 99 | 99 | <string>7443155B-3A9B-4B0A-8D3D-0B533B3B9125</string> |
| 100 | | <string>7B7488CD-ACC9-49F9-BE91-B3150326C3D0</string> |
| 101 | 100 | <string>5011F1E1-74CF-4D63-B901-1E2FB7760AFE</string> |
| 102 | 101 | <string>C3447304-B1F3-4500-9F00-B025D9520BB0</string> |
| 103 | 102 | <string>7BEFC54B-D3FD-4B88-916A-2E80304D5CD2</string> |
| toggle raw diff |
--- a/info.plist
+++ b/info.plist
@@ -97,7 +97,6 @@
<string>E2D2F075-81CE-4604-9813-A08145995F96</string>
<string>23D5F39E-73CA-43FC-90B3-18BDBEDDD56B</string>
<string>7443155B-3A9B-4B0A-8D3D-0B533B3B9125</string>
- <string>7B7488CD-ACC9-49F9-BE91-B3150326C3D0</string>
<string>5011F1E1-74CF-4D63-B901-1E2FB7760AFE</string>
<string>C3447304-B1F3-4500-9F00-B025D9520BB0</string>
<string>7BEFC54B-D3FD-4B88-916A-2E80304D5CD2</string> |