Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 13 additions & 3 deletions Commands/Documentation for theme('hook').tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,31 @@
<string>#!/usr/bin/env php
&lt;?php
require $_SERVER['TM_BUNDLE_SUPPORT'] . '/bootstrap.php';
$url = textmate_docs_for_theme_hook($_SERVER['TM_CURRENT_LINE']);
$request = $_SERVER['TM_SELECTED_TEXT'];
if ($request == '') $request = $_SERVER['TM_CURRENT_WORD'];
$url = textmate_docs_for_theme_hook($request);
print '&lt;meta http-equiv="refresh" content="0; URL='. $url .'"&gt;';</string>
<key>fallbackInput</key>
<string>none</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^h</string>
<key>name</key>
<string>Documentation for theme('hook')</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.php</string>
<key>uuid</key>
<string>D8F8FD43-8849-4A1A-89B3-2EEB74601AA2</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
16 changes: 13 additions & 3 deletions Commands/api_drupal_org.tmCommand
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,31 @@
<string>#!/usr/bin/env php
&lt;?php
require $_SERVER['TM_BUNDLE_SUPPORT'] . '/bootstrap.php';
$url = textmate_docs_for_word($_SERVER['TM_CURRENT_WORD']);
$request = $_SERVER['TM_SELECTED_TEXT'];
if ($request == '') $request = $_SERVER['TM_CURRENT_WORD'];
$url = textmate_docs_for_word($request);
print '&lt;meta http-equiv="refresh" content="0; URL='. $url .'"&gt;';</string>
<key>fallbackInput</key>
<string>none</string>
<key>input</key>
<string>none</string>
<key>inputFormat</key>
<string>text</string>
<key>keyEquivalent</key>
<string>^h</string>
<key>name</key>
<string>Documentation for Word</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.php</string>
<key>uuid</key>
<string>5F0E71DA-6D1D-4AFB-A396-31C650F6B313</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>
2 changes: 1 addition & 1 deletion Snippets/Convert to $variables.tmSnippet
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<plist version="1.0">
<dict>
<key>content</key>
<string>variables['${TM_SELECTED_TEXT}']</string>
<string>\$variables['${1:${TM_SELECTED_TEXT/^\$?(.+$)/$1/g}}']$0</string>
<key>keyEquivalent</key>
<string>^v</string>
<key>name</key>
Expand Down