aboutsummaryrefslogtreecommitdiffstats
path: root/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle
diff options
context:
space:
mode:
authorBibiko <bibiko@eva.mpg.de>2011-01-05 12:15:15 +0000
committerBibiko <bibiko@eva.mpg.de>2011-01-05 12:15:15 +0000
commitb1dc43ce1aa2871753321174239c973a9637a602 (patch)
tree2ce3a1e67dc369959484b550d9908fa542cee95c /SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle
parent2d6c795da8a79126bb25c646f43369df02593f19 (diff)
downloadsequelpro-b1dc43ce1aa2871753321174239c973a9637a602.tar.gz
sequelpro-b1dc43ce1aa2871753321174239c973a9637a602.tar.bz2
sequelpro-b1dc43ce1aa2871753321174239c973a9637a602.zip
• fixed bug for Bundle commands to detect if current textview is the Query Editor
• added some more Default Bundles
Diffstat (limited to 'SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle')
-rw-r--r--SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist47
1 files changed, 47 insertions, 0 deletions
diff --git a/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist b/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist
new file mode 100644
index 00000000..45d4bf86
--- /dev/null
+++ b/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist
@@ -0,0 +1,47 @@
+<?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>author</key>
+ <string>Hans-Jörg Bibiko</string>
+ <key>category</key>
+ <string>Query Editor</string>
+ <key>command</key>
+ <string>cat | perl -ne 'chomp;s/\t/ /g;s/"/\\"/g;print "\"".$_."\" . \"\\n\" .\n"' | sed '$ s/.........$//' | sed '$ s/$/;/' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy</string>
+ <key>contact</key>
+ <string>znvy@ovovxb.qr</string>
+ <key>description</key>
+ <string>Takes the current query or the selection and copies it as a single line quoted multi-line string by appending a ; into the pasteboard for usage in other IDEs as e.g. PHP code snippet.
+
+Example:
+
+SELECT a
+ FROM b
+ ORDER BY c DESC
+
+will copy
+
+"SELECT a" . "\n" .
+" FROM b" . "\n" .
+" ORDER BY c DESC";
+
+Version 1.0
+</string>
+ <key>input</key>
+ <string>selectedtext</string>
+ <key>input_fallback</key>
+ <string>currentquery</string>
+ <key>keyEquivalent</key>
+ <string></string>
+ <key>name</key>
+ <string>Copy Single Line Quoted</string>
+ <key>output</key>
+ <string>none</string>
+ <key>scope</key>
+ <string>inputfield</string>
+ <key>tooltip</key>
+ <string>Takes the current query or the selection and copies it as a single line quoted multi-line string by appending a ; into the pasteboard</string>
+ <key>uuid</key>
+ <string>CDAC825A-AE80-4544-9DBB-8E68A5C540D0</string>
+</dict>
+</plist>