Skip to content

Commit

Permalink
added documentation lookup command (ctrl-H)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.textmate.org/trunk/Bundles/Python Django.tmbundle@9434 dfb7d73b-c2ec-0310-8fea-fb051d288c6d
  • Loading branch information
Paul Bissex committed Apr 20, 2008
1 parent d263060 commit 0fc263f
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 0 deletions.
27 changes: 27 additions & 0 deletions 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>
1 change: 1 addition & 0 deletions info.plist
Expand Up @@ -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>
Expand Down

0 comments on commit 0fc263f

Please sign in to comment.