Permalink
Browse files

Support for requiredCommands.

  • Loading branch information...
1 parent 3205e98 commit e9c4eb0d5e9c1acb15630d78bd3c2914334f33c4 @infininight infininight committed Nov 14, 2011
Showing with 47 additions and 23 deletions.
  1. +47 −0 Commands/Run.tmCommand
  2. +0 −23 Commands/untitled.plist
View
47 Commands/Run.tmCommand
@@ -0,0 +1,47 @@
+<?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 bash
+
+"${TM_LOGO:-logo}" "$TM_FILEPATH"
+</string>
+ <key>input</key>
+ <string>none</string>
+ <key>inputFormat</key>
+ <string>text</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Run</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
+ <string>newWindow</string>
+ <key>requiredCommands</key>
+ <array>
+ <dict>
+ <key>command</key>
+ <string>logo</string>
+ <key>locations</key>
+ <array>
+ <string>/opt/local/bin/logo</string>
+ <string>/usr/local/bin/logo</string>
+ </array>
+ <key>variable</key>
+ <string>TM_LOGO</string>
+ </dict>
+ </array>
+ <key>scope</key>
+ <string>source.logo</string>
+ <key>uuid</key>
+ <string>D03092A5-DED1-4527-9FF0-00E7EC10A0E0</string>
+ <key>version</key>
+ <integer>2</integer>
+</dict>
+</plist>
View
23 Commands/untitled.plist
@@ -1,23 +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>beforeRunningCommand</key>
- <string>nop</string>
- <key>command</key>
- <string>/usr/bin/env logo "$TM_FILEPATH"
-</string>
- <key>input</key>
- <string>none</string>
- <key>keyEquivalent</key>
- <string>@r</string>
- <key>name</key>
- <string>Run</string>
- <key>output</key>
- <string>openAsNewDocument</string>
- <key>scope</key>
- <string>source.logo</string>
- <key>uuid</key>
- <string>D03092A5-DED1-4527-9FF0-00E7EC10A0E0</string>
-</dict>
-</plist>

0 comments on commit e9c4eb0

Please sign in to comment.