Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
Paul Bissex
committed
Apr 20, 2008
1 parent
d263060
commit 0fc263f
Showing
2 changed files
with
28 additions
and
0 deletions.
There are no files selected for viewing
27 changes: 27 additions & 0 deletions
27
Commands/Look up selection in online documentation.tmCommand
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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&as_sitesearch=www.djangoproject.com" | ||
else | ||
open "http://www.google.com/search?as_q=$TM_CURRENT_WORD&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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters