Permalink
Browse files

Add initial semantic classes.

  • Loading branch information...
1 parent 991fc6d commit a244fc88f7c51d89947db9f975410175de05e48f @infininight infininight committed Sep 8, 2012
Showing with 16 additions and 3 deletions.
  1. +16 −3 Commands/Function documentation.tmCommand
@@ -5,7 +5,10 @@
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
- <string>if grep &lt;&lt;&lt;${TM_CURRENT_WORD:-!} -Esq '[a-zA-Z0-9_]+'
+ <string>#!/usr/bin/env bash
+[[ -f "${TM_SUPPORT_PATH}/lib/bash_init.sh" ]] &amp;&amp; . "${TM_SUPPORT_PATH}/lib/bash_init.sh"
+
+if grep &lt;&lt;&lt;${TM_CURRENT_WORD:-!} -Esq '[a-zA-Z0-9_]+'
then exit_show_html "&lt;meta http-equiv='Refresh' content='0;URL=http://www.mathworks.com/access/helpdesk/help/techdoc/index.html?/access/helpdesk/help/techdoc/ref/${TM_CURRENT_WORD}.html'&gt;"
else echo "Nothing to lookup (hint: place the caret on a function name)"
fi
@@ -14,15 +17,25 @@ fi
<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>Function Documentation</string>
- <key>output</key>
- <string>showAsHTML</string>
+ <key>outputCaret</key>
+ <string>afterOutput</string>
+ <key>outputFormat</key>
+ <string>html</string>
+ <key>outputLocation</key>
+ <string>newWindow</string>
<key>scope</key>
<string>source.matlab</string>
+ <key>semanticClass</key>
+ <string>lookup.define.matlab</string>
<key>uuid</key>
<string>033730AF-96F5-4F0C-9199-E0683D40A22C</string>
+ <key>version</key>
+ <integer>2</integer>
</dict>
</plist>

0 comments on commit a244fc8

Please sign in to comment.