Last active
September 9, 2022 14:44
-
-
Save dadamssg/0a5f15c82af49ac8df80466d6bc39fdc to your computer and use it in GitHub Desktop.
Revisions
-
dadamssg revised this gist
Sep 9, 2022 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -10,7 +10,7 @@ let text = await getSelectedText() let json try { json = jsonabc.sort(String(text).trim(), false, 2) } catch (e) { notify(e.message) exit() -
dadamssg revised this gist
Sep 9, 2022 . 1 changed file with 2 additions and 0 deletions.There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,5 +1,7 @@ // Name: format-json // Shortcut: cmd shift j // Author: David Adams // Twitter: @dadamssg import "@johnlindquist/kit" let jsonabc = await npm("jsonabc") -
dadamssg created this gist
Sep 9, 2022 .There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,17 @@ // Name: format-json // Shortcut: cmd shift j import "@johnlindquist/kit" let jsonabc = await npm("jsonabc") let text = await getSelectedText() let json try { json = jsonabc.sort(String(text).trim(), false, 0) } catch (e) { notify(e.message) exit() } await setSelectedText(json)