Permalink
Browse files

pgEdit TextMate 2.1

Updated grammar and documentation tools for Postgres 9.1.

Added PGEDIT_PSQL_PATH variable to customize psql name or location.
  • Loading branch information...
0 parents commit b554bcd7a51d3a9238bbd542b3c21f672de0ee78 @desoi committed Dec 31, 2011
Showing with 21,205 additions and 0 deletions.
  1. +25 −0 pgEdit.tmbundle/Commands/Drop.tmCommand
  2. +25 −0 pgEdit.tmbundle/Commands/Execute File.tmCommand
  3. +26 −0 pgEdit.tmbundle/Commands/Execute SQL Statement.tmCommand
  4. +26 −0 pgEdit.tmbundle/Commands/Execute Selection.tmCommand
  5. +22 −0 pgEdit.tmbundle/Commands/Indent or Complete.tmCommand
  6. +22 −0 pgEdit.tmbundle/Commands/Index.tmCommand
  7. +20 −0 pgEdit.tmbundle/Commands/PL:pgSQL.tmCommand
  8. +24 −0 pgEdit.tmbundle/Commands/SQL Commands.tmCommand
  9. +22 −0 pgEdit.tmbundle/Commands/SQL Language Topics.tmCommand
  10. +22 −0 pgEdit.tmbundle/Commands/Set Connection.tmCommand
  11. +24 −0 pgEdit.tmbundle/Commands/Table of Contents.tmCommand
  12. +23 −0 pgEdit.tmbundle/Commands/pgEdit Help.tmCommand
  13. +20 −0 pgEdit.tmbundle/Commands/psql.tmCommand
  14. +70 −0 pgEdit.tmbundle/Info.plist
  15. +19 −0 pgEdit.tmbundle/Preferences/Completion.tmPreferences
  16. +62 −0 pgEdit.tmbundle/Support/doc/index.html
  17. +101 −0 pgEdit.tmbundle/Support/src/classes/CocoaDialog.php
  18. +211 −0 pgEdit.tmbundle/Support/src/classes/Connection.php
  19. +119 −0 pgEdit.tmbundle/Support/src/classes/Dialog.php
  20. +42 −0 pgEdit.tmbundle/Support/src/classes/File.php
  21. +122 −0 pgEdit.tmbundle/Support/src/classes/Help.php
  22. +262 −0 pgEdit.tmbundle/Support/src/classes/PsqlProcess.php
  23. +84 −0 pgEdit.tmbundle/Support/src/classes/Session.php
  24. +46 −0 pgEdit.tmbundle/Support/src/completion.php
  25. +17,865 −0 pgEdit.tmbundle/Support/src/data/bookindex.html
  26. +961 −0 pgEdit.tmbundle/Support/src/data/sql-commands.html
  27. +1 −0 pgEdit.tmbundle/Support/src/data/sql-commands.php
  28. +1 −0 pgEdit.tmbundle/Support/src/data/statement-start-regex.txt
  29. +60 −0 pgEdit.tmbundle/Support/src/drop.php
  30. +25 −0 pgEdit.tmbundle/Support/src/execute.php
  31. +56 −0 pgEdit.tmbundle/Support/src/help.php
  32. +15 −0 pgEdit.tmbundle/Support/src/output_html.php
  33. +12 −0 pgEdit.tmbundle/Support/src/output_html_head.php
  34. +16 −0 pgEdit.tmbundle/Support/src/set_connection.php
  35. +183 −0 pgEdit.tmbundle/Support/src/style.css
  36. +143 −0 pgEdit.tmbundle/Support/src/util.php
  37. +411 −0 pgEdit.tmbundle/Syntaxes/pg SQL.tmLanguage
  38. +17 −0 pgEdit.tmbundle/readme.txt
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>require_cmd psql
+php -f "$TM_BUNDLE_SUPPORT/src/drop.php"</string>
+ <key>fallbackInput</key>
+ <string>scope</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@</string>
+ <key>name</key>
+ <string>Drop</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>scope</key>
+ <string>meta.statement.pgsql</string>
+ <key>uuid</key>
+ <string>77089960-F771-4DA9-B533-624A64078505</string>
+</dict>
+</plist>
@@ -0,0 +1,25 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>beforeRunningCommand</key>
+ <string>saveActiveFile</string>
+ <key>command</key>
+ <string>require_cmd psql
+php -f "$TM_BUNDLE_SUPPORT/src/execute.php" -- -f "$TM_FILEPATH"</string>
+ <key>fallbackInput</key>
+ <string>none</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>@R</string>
+ <key>name</key>
+ <string>Execute File</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>9CBC4B24-F56F-4520-B32F-D77A9F722B20</string>
+</dict>
+</plist>
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>require_cmd psql
+php -f "$TM_BUNDLE_SUPPORT/src/execute.php"
+</string>
+ <key>fallbackInput</key>
+ <string>scope</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Execute SQL Command</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>meta.statement.pgsql</string>
+ <key>uuid</key>
+ <string>3DA3120A-C077-4487-94F3-71BD9A94D687</string>
+</dict>
+</plist>
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>require_cmd psql
+php -f "$TM_BUNDLE_SUPPORT/src/execute.php"
+</string>
+ <key>fallbackInput</key>
+ <string>none</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string>@r</string>
+ <key>name</key>
+ <string>Execute Selection</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>3580331B-4398-4E64-AD49-9A69FDA8F009</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/completion.php"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string> </string>
+ <key>name</key>
+ <string>Indent or Complete</string>
+ <key>output</key>
+ <string>insertAsSnippet</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>1E8E6FF4-4183-4506-BB4A-1FBAA17839BE</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/help.php" -- -d "bookindex.html"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^h</string>
+ <key>name</key>
+ <string>Index</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>C5F5F0B0-89E1-44E1-A53E-C4FD3E6AE4B7</string>
+</dict>
+</plist>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/help.php" -- -d "plpgsql.html"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>name</key>
+ <string>PL/pgSQL</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>6E8B3169-9374-4CF1-9DDF-7890F5C149C9</string>
+</dict>
+</plist>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/help.php" -- -d "sql-commands.html"</string>
+ <key>fallbackInput</key>
+ <string>line</string>
+ <key>input</key>
+ <string>selection</string>
+ <key>keyEquivalent</key>
+ <string></string>
+ <key>name</key>
+ <string>SQL Commands</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>C1A35A0F-7483-46E1-B7F6-452306B92B3A</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/help.php" -- -d "sql-language"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^@h</string>
+ <key>name</key>
+ <string>SQL Language Topics</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>FBCB0F3F-FB6C-45AF-9C54-8C9C3455DB99</string>
+</dict>
+</plist>
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/set_connection.php"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>~@,</string>
+ <key>name</key>
+ <string>Set Connection</string>
+ <key>output</key>
+ <string>showAsTooltip</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>4C3FB8DD-1309-40DB-BC71-481896F44B37</string>
+</dict>
+</plist>
@@ -0,0 +1,24 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/help.php" -- -d "index.html"</string>
+ <key>fallbackInput</key>
+ <string>none</string>
+ <key>input</key>
+ <string>none</string>
+ <key>keyEquivalent</key>
+ <string>^~h</string>
+ <key>name</key>
+ <string>Table of Contents</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>C21D6142-6730-4AA4-8A78-D71953D25786</string>
+</dict>
+</plist>
@@ -0,0 +1,23 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>. "$TM_SUPPORT_PATH/lib/webpreview.sh"
+html_header "pgEdit Help" "SQL (PostgreSQL)"
+cat "$TM_BUNDLE_SUPPORT/doc/index.html"
+html_footer</string>
+ <key>input</key>
+ <string>none</string>
+ <key>name</key>
+ <string>pgEdit Help</string>
+ <key>output</key>
+ <string>showAsHTML</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>E7F50336-E61A-4FA7-B86F-6CFBE404B001</string>
+</dict>
+</plist>
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//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>php -f "$TM_BUNDLE_SUPPORT/src/help.php" -- -d "app-psql.html"</string>
+ <key>input</key>
+ <string>none</string>
+ <key>name</key>
+ <string>psql</string>
+ <key>output</key>
+ <string>openAsNewDocument</string>
+ <key>scope</key>
+ <string>source.pgsql</string>
+ <key>uuid</key>
+ <string>DB357628-01FD-432D-B4D7-2BD9DDEDE36B</string>
+</dict>
+</plist>
@@ -0,0 +1,70 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
+<plist version="1.0">
+<dict>
+ <key>version</key>
+ <string>2.0.1</string>
+ <key>contactName</key>
+ <string>John DeSoi, Ph.D.</string>
+ <key>webSite</key>
+ <string>http://pgedit.com</string>
+ <key>description</key>
+ <string>Support for &lt;a href=&quot;http://postgresql.org&quot;&gt;PostgreSQL&lt;/a&gt;.</string>
+ <key>mainMenu</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>4C3FB8DD-1309-40DB-BC71-481896F44B37</string>
+ <string>------------------------------------</string>
+ <string>3DA3120A-C077-4487-94F3-71BD9A94D687</string>
+ <string>3580331B-4398-4E64-AD49-9A69FDA8F009</string>
+ <string>9CBC4B24-F56F-4520-B32F-D77A9F722B20</string>
+ <string>------------------------------------</string>
+ <string>77089960-F771-4DA9-B533-624A64078505</string>
+ <string>------------------------------------</string>
+ <string>1E8E6FF4-4183-4506-BB4A-1FBAA17839BE</string>
+ <string>------------------------------------</string>
+ <string>2EF01E58-E92B-4815-8B78-7842369B8D2D</string>
+ </array>
+ <key>submenus</key>
+ <dict>
+ <key>2EF01E58-E92B-4815-8B78-7842369B8D2D</key>
+ <dict>
+ <key>items</key>
+ <array>
+ <string>C21D6142-6730-4AA4-8A78-D71953D25786</string>
+ <string>C1A35A0F-7483-46E1-B7F6-452306B92B3A</string>
+ <string>FBCB0F3F-FB6C-45AF-9C54-8C9C3455DB99</string>
+ <string>6E8B3169-9374-4CF1-9DDF-7890F5C149C9</string>
+ <string>DB357628-01FD-432D-B4D7-2BD9DDEDE36B</string>
+ <string>C5F5F0B0-89E1-44E1-A53E-C4FD3E6AE4B7</string>
+ </array>
+ <key>name</key>
+ <string>PostgreSQL Documentation</string>
+ </dict>
+ </dict>
+ </dict>
+ <key>name</key>
+ <string>pgEdit</string>
+ <key>ordering</key>
+ <array>
+ <string>4C3FB8DD-1309-40DB-BC71-481896F44B37</string>
+ <string>77089960-F771-4DA9-B533-624A64078505</string>
+ <string>3DA3120A-C077-4487-94F3-71BD9A94D687</string>
+ <string>3580331B-4398-4E64-AD49-9A69FDA8F009</string>
+ <string>9CBC4B24-F56F-4520-B32F-D77A9F722B20</string>
+ <string>C21D6142-6730-4AA4-8A78-D71953D25786</string>
+ <string>C1A35A0F-7483-46E1-B7F6-452306B92B3A</string>
+ <string>FBCB0F3F-FB6C-45AF-9C54-8C9C3455DB99</string>
+ <string>6E8B3169-9374-4CF1-9DDF-7890F5C149C9</string>
+ <string>DB357628-01FD-432D-B4D7-2BD9DDEDE36B</string>
+ <string>C5F5F0B0-89E1-44E1-A53E-C4FD3E6AE4B7</string>
+ <string>1E8E6FF4-4183-4506-BB4A-1FBAA17839BE</string>
+ <string>E7F50336-E61A-4FA7-B86F-6CFBE404B001</string>
+ <string>4D6B679D-111C-4529-B558-3F25487D9E27</string>
+ <string>52C00BB3-5BEB-45C2-9DB1-ECE6A9161765</string>
+ </array>
+ <key>uuid</key>
+ <string>6FAB28A0-5DA8-4D1B-B795-BBDED44EE37F</string>
+</dict>
+</plist>
Oops, something went wrong.

0 comments on commit b554bcd

Please sign in to comment.