Last active
October 3, 2022 20:50
-
-
Save tayiorbeii/8188be0bb4d071a99dc3cc934f2fc723 to your computer and use it in GitHub Desktop.
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 characters
| import "@johnlindquist/kit" | |
| // Name: roam clipboard reformatter | |
| // Description: Copy nested blocks from Roam and run this script to un-indent and remove brackets | |
| // Author: Taylor Bell | |
| // Twitter: @taylorbell | |
| let outdent = await npm('tiny-dedent') | |
| let replaceAll = await npm('just-replace-all') | |
| let text = await paste() | |
| let outdentedTextLines = replaceAll(replaceAll(outdent(text), '[[', ''), ']]', '') | |
| await copy(outdentedTextLines) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For proper citation of author ☝️