There’s a clever iOS app called Text Case. As you input text into any app, you can copy text to clipboard, and call up Text Case via the Share function, and have it trim white space, convert to lower/upper/title case, strip HTML, format a Markdown Blockquote, etc etc. Text Case copies the converted text so you can paste it back into its original context, replacing the highlighted text.
I know Drafts is supposed to work the other way - as a platform to compose text for use elsewhere. But is there any functionality for sharing text from some other app back to Drafts for transformation, ala Text Case? If so, I could replace Text Case…and add my own transformations.
So I guess the way to go is, having created Shortcuts linked to “Run Action with Text” for Drafts mobile, I’d also create search/replace applescripts (I don’t do JS), and pack them into individual text-transforming Drafts actions for use on desktop-only?
Drafts seems finicky about search/replace applescripts. For starters, the app is surprisingly not compatible with Recording in Script Editor (which would help users learn syntax). And simple scripted search/replaces that work great with BBedit don’t work in Drafts, so there must be a different syntax requirement. And after 30 mins of searching this site, I see no references to non-RegEx searching, which would remove the complexity of escaping for newbie scripting efforts.
If there’s a way to build an action to do a simple search/replace action, it’s not evident, and IMO that should be an installed default action (which users could then play with to suit their needs).
It might also be newbie-friendly to add a “Script this search/replace action” button to Draft’s find/replace window.