Skip to content

Commit

Permalink
Use requiredCommands.
Browse files Browse the repository at this point in the history
  • Loading branch information
infininight committed Nov 21, 2011
1 parent eee9122 commit 6af714d
Showing 1 changed file with 28 additions and 3 deletions.
31 changes: 28 additions & 3 deletions Commands/Documentation For Word : Selection.tmCommand
Expand Up @@ -5,7 +5,10 @@
<key>beforeRunningCommand</key> <key>beforeRunningCommand</key>
<string>nop</string> <string>nop</string>
<key>command</key> <key>command</key>
<string>. "$TM_SUPPORT_PATH/lib/webpreview.sh" <string>#!/usr/bin/env bash
[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
. "$TM_SUPPORT_PATH/lib/webpreview.sh"
COMMAND=`cat | tr -d ' \t' | grep -m1 -o '^\w\+' | tr 'a-z' 'A-Z'` COMMAND=`cat | tr -d ' \t' | grep -m1 -o '^\w\+' | tr 'a-z' 'A-Z'`
Expand All @@ -17,15 +20,37 @@ html_footer
<string>line</string> <string>line</string>
<key>input</key> <key>input</key>
<string>selection</string> <string>selection</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key> <key>keyEquivalent</key>
<string>^h</string> <string>^h</string>
<key>name</key> <key>name</key>
<string>Documentation For Command</string> <string>Documentation For Command</string>
<key>output</key> <key>outputCaret</key>
<string>showAsHTML</string> <string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>requiredCommands</key>
<array>
<dict>
<key>command</key>
<string>cmake</string>
<key>locations</key>
<array>
<string>/opt/local/bin/cmake</string>
<string>/usr/local/bin/cmake</string>
</array>
<key>variable</key>
<string>TM_CMAKE</string>
</dict>
</array>
<key>scope</key> <key>scope</key>
<string>source.cmake meta.function-call, source.cmake</string> <string>source.cmake meta.function-call, source.cmake</string>
<key>uuid</key> <key>uuid</key>
<string>6AA1ED0A-6E0F-48EC-965C-D57AD98A100B</string> <string>6AA1ED0A-6E0F-48EC-965C-D57AD98A100B</string>
<key>version</key>
<integer>2</integer>
</dict> </dict>
</plist> </plist>

0 comments on commit 6af714d

Please sign in to comment.