Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

• Changed this command to take the function call scope as input rathe…

…r than word/selection, and extract the command name from the beginning of the call. This way ⌃H can be used at any location inside a command call, rather than having to move the caret to the command name.

• Changed the command name to reflect this change


git-svn-id: http://svn.textmate.org/trunk/Review/Bundles/CMake.tmbundle@9691 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit b07c925718d9ec340ea226aa7113415e834efd01 1 parent f24aea5
@ciaran ciaran authored
Showing with 7 additions and 7 deletions.
  1. +7 −7 Commands/Documentation For Word : Selection.tmCommand
View
14 Commands/Documentation For Word : Selection.tmCommand
@@ -7,24 +7,24 @@
<key>command</key>
<string>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
-WORD=`tr 'a-z' 'A-Z' &lt;&lt;&lt;"${TM_SELECTED_TEXT:-$TM_CURRENT_WORD}"`
+COMMAND=`cat | tr -d ' \t' | grep -o '^\w\+' | tr 'a-z' 'A-Z'`
-html_header "Documentation for $WORD"
-"${TM_CMAKE:-cmake}" --help-command "$WORD" | pre
+html_header "Documentation for $COMMAND"
+"${TM_CMAKE:-cmake}" --help-command "$COMMAND" | pre
html_footer
</string>
<key>fallbackInput</key>
- <string>line</string>
+ <string>scope</string>
<key>input</key>
- <string>none</string>
+ <string>selection</string>
<key>keyEquivalent</key>
<string>^h</string>
<key>name</key>
- <string>Documentation For Word / Selection</string>
+ <string>Documentation For Command</string>
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
- <string>source.cmake</string>
+ <string>source.cmake meta.function-call</string>
<key>uuid</key>
<string>6AA1ED0A-6E0F-48EC-965C-D57AD98A100B</string>
</dict>
Please sign in to comment.
Something went wrong with that request. Please try again.