Permalink
Browse files

Hmm. I thought these were committed last time. Let's try again.

Added error message and support for TM_OPML_APPLICATION.  
By default, it's OmniOutliner (not Pro).



git-svn-id: http://svn.textmate.org/trunk/Outlines.tmbundle@325 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
Eric Hsu
Eric Hsu committed Feb 21, 2005
1 parent 904b379 commit 8f83d447ffa0ee314c761b4d9212d6cd4be3a57b
Showing with 10 additions and 235 deletions.
  1. +10 −3 Commands/Tabs to OmniOutliner.plist
  2. +0 −232 Tools/Outline Scripts.tmproj
@@ -5,17 +5,24 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>perl "$TM_BUNDLE_PATH/Tools/t2o.pl" &gt; /tmp/tm2oo.opml &amp;&amp; open -a "OmniOutliner Professional" /tmp/tm2oo.opml
+ <string># Change the application name if you are using OmniOutliner or another program. You can edit this command or go to Prefs/Advanced/ShellVariables and set TM_OPML_APPLICATION to the name of your favorite program.
-# Change the application name if you are using OmniOutliner</string>
+if [ -z $TM_OPML_APPLICATION ] ; then
+ TM_OPML_APPLICATION="OmniOutliner"
+fi
+
+perl "$TM_BUNDLE_PATH/Tools/t2o.pl" &gt; /tmp/tm2oo.opml
+
+open -a "$TM_OPML_APPLICATION" /tmp/tm2oo.opml || echo "$TM_OPML_APPLICATION can't be found. Edit the command and replace TM_OPML_APPLICATION with an existing application."
+</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>^@o</string>
<key>name</key>
<string>Tabs to OmniOutliner</string>
<key>output</key>
- <string>discard</string>
+ <string>showAsTooltip</string>
<key>uuid</key>
<string>DBF2B50A-8303-11D9-8C1E-000D9332809C</string>
</dict>
@@ -1,232 +0,0 @@
-<?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">
-<plist version="1.0">
-<dict>
- <key>currentDocument</key>
- <string>t2ol.pl</string>
- <key>documents</key>
- <array>
- <dict>
- <key>filename</key>
- <string>../../../../../obnoxious-css-list-bug.htm</string>
- </dict>
- <dict>
- <key>filename</key>
- <string>/tmp/t2.htm</string>
- <key>saveAsAbsolutePath</key>
- <true/>
- </dict>
- <dict>
- <key>filename</key>
- <string>/tmp/t.txt</string>
- <key>saveAsAbsolutePath</key>
- <true/>
- </dict>
- <dict>
- <key>filename</key>
- <string>/tmp/correct.htm</string>
- <key>saveAsAbsolutePath</key>
- <true/>
- </dict>
- <dict>
- <key>filename</key>
- <string>/tmp/t5.htm</string>
- <key>saveAsAbsolutePath</key>
- <true/>
- </dict>
- <dict>
- <key>expanded</key>
- <true/>
- <key>name</key>
- <string>Tools</string>
- <key>regexFileFilter</key>
- <string>^.*/(\.htaccess|(?!\.|.*\.tmproj$|Icon\r$)[^/]*)$</string>
- <key>regexFolderFilter</key>
- <string>!(.*/\.[^/]*|CVS|~\.nib|\.(framework|app|pbproj|pbxproj|xcode|bundle))$</string>
- <key>sourceDirectory</key>
- <string></string>
- </dict>
- </array>
- <key>fileHierarchyDrawerWidth</key>
- <integer>199</integer>
- <key>metaData</key>
- <dict>
- <key>/tmp/correct.htm</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>0</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>/tmp/t.txt</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>4</integer>
- <key>line</key>
- <integer>21</integer>
- </dict>
- <key>columnSelection</key>
- <false/>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- <key>selectFrom</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>15</integer>
- </dict>
- <key>selectTo</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>22</integer>
- </dict>
- </dict>
- <key>/tmp/t2.htm</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>38</integer>
- <key>line</key>
- <integer>0</integer>
- </dict>
- <key>columnSelection</key>
- <false/>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- <key>selectFrom</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>0</integer>
- </dict>
- <key>selectTo</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>1</integer>
- </dict>
- </dict>
- <key>/tmp/t5.htm</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>54</integer>
- </dict>
- <key>columnSelection</key>
- <false/>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>14</integer>
- <key>selectFrom</key>
- <dict>
- <key>column</key>
- <integer>7</integer>
- <key>line</key>
- <integer>56</integer>
- </dict>
- <key>selectTo</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>54</integer>
- </dict>
- </dict>
- <key>t2h.pl</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>15</integer>
- <key>line</key>
- <integer>0</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>t2o.pl</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>0</integer>
- <key>line</key>
- <integer>3</integer>
- </dict>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- </dict>
- <key>t2ol.pl</key>
- <dict>
- <key>caret</key>
- <dict>
- <key>column</key>
- <integer>32</integer>
- <key>line</key>
- <integer>35</integer>
- </dict>
- <key>columnSelection</key>
- <false/>
- <key>firstVisibleColumn</key>
- <integer>0</integer>
- <key>firstVisibleLine</key>
- <integer>0</integer>
- <key>selectFrom</key>
- <dict>
- <key>column</key>
- <integer>5</integer>
- <key>line</key>
- <integer>34</integer>
- </dict>
- <key>selectTo</key>
- <dict>
- <key>column</key>
- <integer>32</integer>
- <key>line</key>
- <integer>35</integer>
- </dict>
- </dict>
- </dict>
- <key>openDocuments</key>
- <array>
- <string>t2o.pl</string>
- <string>t2h.pl</string>
- <string>t2ol.pl</string>
- <string>/tmp/t.txt</string>
- <string>/tmp/t5.htm</string>
- <string>/tmp/correct.htm</string>
- <string>/tmp/t2.htm</string>
- </array>
- <key>showFileHierarchyDrawer</key>
- <true/>
- <key>windowFrame</key>
- <string>{{222, 71}, {757, 925}}</string>
-</dict>
-</plist>

0 comments on commit 8f83d44

Please sign in to comment.