From 3f813a65b0d41b4a1771349f27a2d0ccafb740f5 Mon Sep 17 00:00:00 2001 From: Bibiko Date: Wed, 19 Jan 2011 11:36:19 +0000 Subject: =?UTF-8?q?=E2=80=A2=20improved=20replacing=20selection=20of=20Bun?= =?UTF-8?q?dle=20commands=20-=20intersect=20ranges=20in=20beforehand=20for?= =?UTF-8?q?=20safety=20reasons=20=E2=80=A2=20removed=20Serialize/Prettify?= =?UTF-8?q?=20JSON=20Bundles=20by=20Toggle=20JSON=20Format=20which=20auto-?= =?UTF-8?q?detects=20the=20JSON=20format=20to=20decide=20whether=20to=20se?= =?UTF-8?q?rialize=20or=20pretty=20print?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../Serialize JSON.spBundle/command.plist | 54 ---------------------- 1 file changed, 54 deletions(-) delete mode 100644 SharedSupport/Default Bundles/Serialize JSON.spBundle/command.plist (limited to 'SharedSupport/Default Bundles/Serialize JSON.spBundle') diff --git a/SharedSupport/Default Bundles/Serialize JSON.spBundle/command.plist b/SharedSupport/Default Bundles/Serialize JSON.spBundle/command.plist deleted file mode 100644 index a47bf148..00000000 --- a/SharedSupport/Default Bundles/Serialize JSON.spBundle/command.plist +++ /dev/null @@ -1,54 +0,0 @@ - - - - - author - Hans-Jörg Bibiko - category - Format - command - php -r ' -$jsonData = ""; -$inputStream = fopen("php://stdin", "r"); -while($d = fgets($inputStream)) { $jsonData .= $d; } -print json_encode(json_decode($jsonData)); -' - -# if there's a need to preserve Unicode characters pipe the output -# of the the PHP script to the following Perl code: -# perl -Xpe 'binmode STDIN,":utf8";binmode STDOUT,":utf8";s/\\u([0-9A-F]{4})/chr(hex($1))/ieg' - contact - znvy@ovovxb.qr - description - Take the selection or the entire content of the current text input field and serialize the JSON data. Unicode characters will be converted to \u.... sequences. If you want to preserve these Unicode characters you can uncomment the last code line. - -Version 1.0 - input - selectedtext - input_fallback - entirecontent - internalKeyEquivalent - - characters - J - keyCode - 38 - modifierFlags - 1572864 - - keyEquivalent - ~@j - name - Serialize JSON - output - replaceselection - scope - inputfield - tooltip - Serialize JSON data - uuid - D07AF7FA-CFD1-41A9-8786-FFF50FE8737A - isDefaultBundle - - - -- cgit v1.2.3