Skip to content

Commit

Permalink
Added APIdock documentation command
Browse files Browse the repository at this point in the history
  • Loading branch information
lautis committed Feb 22, 2009
1 parent 829057c commit b8c5f16
Showing 1 changed file with 27 additions and 0 deletions.
27 changes: 27 additions & 0 deletions Commands/Documentation for Word.tmCommand
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>beforeRunningCommand</key>
<string>nop</string>
<key>command</key>
<string>#!/usr/bin/env ruby
url = "http://apidock.com/rails/search/quick?query=" + ENV['TM_CURRENT_WORD']
puts "&lt;meta http-equiv='Refresh' content='0;URL=#{url}'&gt;"
</string>
<key>fallbackInput</key>
<string>word</string>
<key>input</key>
<string>selection</string>
<key>keyEquivalent</key>
<string>^h</string>
<key>name</key>
<string>Documentation for Word</string>
<key>output</key>
<string>showAsHTML</string>
<key>scope</key>
<string>source.ruby.rails, text.html.ruby, text.haml</string>
<key>uuid</key>
<string>32F30207-D827-46D9-889A-451C35269D52</string>
</dict>
</plist>

0 comments on commit b8c5f16

Please sign in to comment.