From b1dc43ce1aa2871753321174239c973a9637a602 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 5 Jan 2011 12:15:15 +0000 Subject: =?UTF-8?q?=E2=80=A2=20fixed=20bug=20for=20Bundle=20commands=20to?= =?UTF-8?q?=20detect=20if=20current=20textview=20is=20the=20Query=20Editor?= =?UTF-8?q?=20=E2=80=A2=20added=20some=20more=20Default=20Bundles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../CopySingleLineQuoted.spBundle/command.plist | 47 ++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist (limited to 'SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist') 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 @@ + + + + + author + Hans-Jörg Bibiko + category + Query Editor + command + cat | perl -ne 'chomp;s/\t/ /g;s/"/\\"/g;print "\"".$_."\" . \"\\n\" .\n"' | sed '$ s/.........$//' | sed '$ s/$/;/' | __CF_USER_TEXT_ENCODING=$UID:0x8000100:0x8000100 pbcopy + contact + znvy@ovovxb.qr + description + 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 + + input + selectedtext + input_fallback + currentquery + keyEquivalent + + name + Copy Single Line Quoted + output + none + scope + inputfield + tooltip + Takes the current query or the selection and copies it as a single line quoted multi-line string by appending a ; into the pasteboard + uuid + CDAC825A-AE80-4544-9DBB-8E68A5C540D0 + + -- cgit v1.2.3 From 9694c8e17e09e067964aef42afb6a7ed67e506e0 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Fri, 7 Jan 2011 07:23:39 +0000 Subject: =?UTF-8?q?=E2=80=A2=20improved=20installation=20routine=20for=20D?= =?UTF-8?q?efault=20Bundles=20=E2=80=A2=20added=20missing=20key=20isDefaul?= =?UTF-8?q?tBundle=20to=20Default=20Bundles?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Default Bundles/CopySingleLineQuoted.spBundle/command.plist | 2 ++ 1 file changed, 2 insertions(+) (limited to 'SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist') diff --git a/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist b/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist index 45d4bf86..56cdd9c4 100644 --- a/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist +++ b/SharedSupport/Default Bundles/CopySingleLineQuoted.spBundle/command.plist @@ -43,5 +43,7 @@ Version 1.0 Takes the current query or the selection and copies it as a single line quoted multi-line string by appending a ; into the pasteboard uuid CDAC825A-AE80-4544-9DBB-8E68A5C540D0 + isDefaultBundle + -- cgit v1.2.3