/Misc/TextMate/Python-Dev.tmbundle/Commands/Open Docs.tmCommand

http://unladen-swallow.googlecode.com/ · Unknown · 32 lines · 31 code · 1 blank · 0 comment · 0 complexity · ad878efa33eceebac29bf15a88439890 MD5 · raw file

  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. html_index=$TM_PROJECT_DIRECTORY/Doc/build/html/index.html
  13. if [[ -f $html_index ]]; then
  14. open $html_index
  15. elif [[ $TM_PYTHONDEV_DOCS ]]; then
  16. open $TM_PYTHONDEV_DOCS
  17. else
  18. open http://docs.python.org/dev/
  19. fi</string>
  20. <key>input</key>
  21. <string>none</string>
  22. <key>keyEquivalent</key>
  23. <string>@H</string>
  24. <key>name</key>
  25. <string>Open Docs</string>
  26. <key>output</key>
  27. <string>discard</string>
  28. <key>uuid</key>
  29. <string>BF336FFF-E14D-4BF1-A156-71CF768AC034</string>
  30. </dict>
  31. </plist>