For anyone using Drafts – which is great for quick capture and then prepping text to paste into Obsidian or making a .md file to import – you might be interested in a custom Action that I’ve just posted to the Drafts Action Directory: Wiki Wrapper. Works on macOS or iOS or iPadOS.
It’s based on the developer’s “Smart Brackets” Action, but with [[double brackets]]. If you’ve selected text, the Action will wrap the text (I have the keyboard shortcut set to ⌘⌥-[). If there is no selection, the Action will scan text for last open or close, and close the wrapping it if last one was an open, or insert the opening [[ if not.
I was excited to see this Action, thanks for sharing! I am still using my legacy copy of Drafts 4, and when I tried to add the Action, I got a script error: “ReferenceError: Can’t find variable: editor.“ I know very little about programming, so I don’t know if this Action simply won’t work with my old version of Drafts, or if there is actually something amiss with the script. Any help would be appreciated!