Permalink
Browse files

Add initial semantic classes.

  • Loading branch information...
infininight committed Sep 8, 2012
1 parent 0451391 commit e18b66e3fab69573f6e328ac876eec12902a336a
Showing with 30 additions and 4 deletions.
  1. +15 −2 Commands/Documentation for Word or Selection.tmCommand
  2. +15 −2 Commands/Run.tmCommand
@@ -5,21 +5,34 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>asd.rb
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+asd.rb
</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
<string>selection</string>
+ <key>inputFormat</key>
+ <string>text</string>
<key>keyEquivalent</key>
<string>^h</string>
<key>name</key>
<string>Documentation for Word / Selection</string>
- <key>output</key>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
<string>discard</string>
<key>scope</key>
<string>source.js.jsfl</string>
+ <key>semanticClass</key>
+ <string>lookup.define.js.jsfl</string>
<key>uuid</key>
<string>4E4934AC-F290-49DD-A424-14B2760666E7</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>
View
@@ -5,19 +5,32 @@
<key>beforeRunningCommand</key>
<string>saveActiveFile</string>
<key>command</key>
- <string>open "$TM_FILEPATH"
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+open "$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>output</key>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>text</string>
+ <key>outputLocation</key>
<string>discard</string>
<key>scope</key>
<string>source.js.jsfl</string>
+ <key>semanticClass</key>
+ <string>process.external.run.js.jsfl</string>
<key>uuid</key>
<string>3ACF1061-FE40-4377-9514-70B83494946D</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>

0 comments on commit e18b66e

Please sign in to comment.