forked from drnic/ruby-on-rails-tmbundle
/
Documentation for Word.tmCommand
37 lines (37 loc) · 1.09 KB
/
Documentation for Word.tmCommand
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
<?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 ruby18
url = "http://apidock.com/rails/search/quick?query=" + ENV['TM_CURRENT_WORD']
puts "<meta http-equiv='Refresh' content='0;URL=#{url}'>"
</string>
<key>fallbackInput</key>
<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>Documentation for Word</string>
<key>outputCaret</key>
<string>afterOutput</string>
<key>outputFormat</key>
<string>html</string>
<key>outputLocation</key>
<string>newWindow</string>
<key>scope</key>
<string>source.ruby.rails, text.html.erb.rails, text.haml</string>
<key>semanticClass</key>
<string>lookup.define.ruby.rails</string>
<key>uuid</key>
<string>32F30207-D827-46D9-889A-451C35269D52</string>
<key>version</key>
<integer>2</integer>
</dict>
</plist>