Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

added documentation lookup command (ctrl-H)

git-svn-id: http://svn.textmate.org/trunk/Bundles/Python Django.tmbundle@9434 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information...
commit 0fc263f98cdf3512c44db936a02614aa84cfffc6 1 parent d263060
Paul Bissex authored
View
27 Commands/Look up selection in online documentation.tmCommand
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple Computer//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>if [ $TM_SELECTED_TEXT]
+then
+ open "http://www.google.com/search?as_q=$TM_SELECTED_TEXT&amp;as_sitesearch=www.djangoproject.com"
+else
+ open "http://www.google.com/search?as_q=$TM_CURRENT_WORD&amp;as_sitesearch=www.djangoproject.com"
+fi</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^h</string>
+ <key>name</key>
+ <string>Search online documentation</string>
+ <key>output</key>
+ <string>discard</string>
+ <key>scope</key>
+ <string>source.python.django, text.html.django</string>
+ <key>uuid</key>
+ <string>5F79A28E-E2FA-4266-A069-2983B8828C04</string>
+</dict>
+</plist>
View
1  info.plist
@@ -104,6 +104,7 @@
<string>0B31BBE8-B195-4164-B4F6-245803D21C30</string>
<string>2F2B9569-8D5D-423E-8B36-75C59BAE9FE4</string>
<string>5326D56C-6F76-4758-8DB7-D818527919AC</string>
+ <string>5F79A28E-E2FA-4266-A069-2983B8828C04</string>
</array>
<key>uuid</key>
<string>04734303-952E-44C6-BC53-650D4409E3BE</string>
Please sign in to comment.
Something went wrong with that request. Please try again.