Skip to content
Permalink
Browse files

Added APIdock documentation command

  • Loading branch information...
lautis committed Feb 22, 2009
1 parent 829057c commit b8c5f160014112a4afa5a90ca92505b1b8ab0bc2
Showing with 27 additions and 0 deletions.
  1. +27 −0 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.
You can’t perform that action at this time.