source: python/trunk/Misc/TextMate/Python-Dev.tmbundle/Commands/Open Docs.tmCommand

Last change on this file was 2, checked in by Yuri Dario, 15 years ago

Initial import for vendor code.

  • Property svn:eol-style set to native
File size: 837 bytes
Line 
1<?xml version="1.0" encoding="UTF-8"?>
2<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
3<plist version="1.0">
4<dict>
5 <key>beforeRunningCommand</key>
6 <string>nop</string>
7 <key>command</key>
8 <string># Search order:
9# - Current project.
10# - TM_PYTHONDEV_DOCS.
11# - Online docs in development.
12
13html_index=$TM_PROJECT_DIRECTORY/Doc/build/html/index.html
14if [[ -f $html_index ]]; then
15 open $html_index
16elif [[ $TM_PYTHONDEV_DOCS ]]; then
17 open $TM_PYTHONDEV_DOCS
18else
19 open http://docs.python.org/dev/
20fi</string>
21 <key>input</key>
22 <string>none</string>
23 <key>keyEquivalent</key>
24 <string>@H</string>
25 <key>name</key>
26 <string>Open Docs</string>
27 <key>output</key>
28 <string>discard</string>
29 <key>uuid</key>
30 <string>BF336FFF-E14D-4BF1-A156-71CF768AC034</string>
31</dict>
32</plist>
Note: See TracBrowser for help on using the repository browser.