Using capture to perform initial edits of a new draft
I stand corrected: The equivalent to the Capture window on mobile devices is dictation by widget (did not try that one before so I didn’t know). Because dictation by widget too needs the user to confirm creating a draft. But to return to @phantastes initial post: Why not add a setting for the behaviour of the closing button of the Capture window? With options like Delete/Create Draft/Ask. I guess we all agree on preventing to lose content is of prime importance. And a setting like this would he...
Using capture to perform initial edits of a new draft
I was using “capture with options” to type a note about an article that I was reading. The window was on top of what I was reading and beginning to get just a little bit in my way so I decided to close it feeling confident that the text would still be there when I reopened the capture window, but when I opened the window it was blank. I searched for ways to get it back but was unsuccessful. Any ideas would be appreciated.
TIP: Append to running lists with the "Add to list" action
This example action demonstrates a method to create and append to running lists in Drafts. Useful for things like capturing movies you want to see, or things you need to remember to pick up at the store. Get the action and more details at the Action Directory, see it in action below. A few basic modifications at the top of the action script control what categories are available to select for lists and the tag to use to assign new lists.
I followed Jaipal_Singh’s steps from here Thought asylum / Alfred 4 workflow issue and got my dlog command working. But somehow it’s only adding to whatever draft I’ve already got going for the day (or sometimes even a past draft), as opposed to creating a new draft and putting the entry there? I feel so close and yet so far away! In the immortal words of Leeloo, “Help please?”
I’ve just updated my Things Parser to version 3 in the action directory. I’ve decided to move from the old custom syntax to TaskPaper to take advantage of the syntax highlighting in Drafts and to aid compatibility with other apps. If you’ve never used Things Parser before, it takes tasks written in the TaskPaper format and imports them into the Things app. It supports everything that Things itself does including checklists, headings, natural language dates and more. You can read more about the ...
The Files action on iOS/iPadOS does not work with Save in Place
I don’t own Devonthink, but I’d guess what’s going on is reflected in the action name. Save in place couldn’t work because it’s probably designed to receive a file and then add it to Devonthink where it is. To do this with Drafts, the best way would probably be to create a folder somewhere, add a bookmark to that and then have DevonThink import from there. comes down to the old, Drafts doesn’t use files, it’s a database thing, I think.
The Files action on iOS/iPadOS does not work with Save in Place
Since bulk moving of notes from Drafts to DEVONthink To Go by x-callback URL means an ongoing and annoying automatic switching between both apps I decided to go with the Files action. DEVONthink To Go allows Save in Place, it is visible in the Files App, and other apps can save in DEVONthink To Go’s databases and groups. I had to find out that Drafts can not, if I did not do anything wrong. But it’s a simple action and I was able to make it work on the Mac, so I don’t think it was me. In Drafts ...
First, it’s FULLY possible that I don’t understand something about Drafts, the Taskpaper format, or both! My question is this: is it possible to have the lines in a Taskpaper formatted draft align with the first character of the first line? See the attached image. The first three lines are aligned (a Taskpaper note). The next two ar aligned, too (a *). In the third grouping, I use a hyphen (indicating a task) and the second and third lines seem aligned with the hyphen rather than the text of...
Syntax highlighting YAML blocks within Pandoc Markdown files
I’m trying to write a syntax for Pandoc Markdown files. My articles in Pandoc Markdown always contain YAML blocks fenced by a pair of triple hyphens ---. Sublime Text syntax-highlights YAML keys and list hyphens nicely within the metadata block. In the Drafts syntax file though, I haven’t been able to figure out a regex to match YAML keys and list hyphens only within metadata blocks. What I’m looking for is a regex like: ((\w+)(: )(.*))|((\w+)(:)(\s\- )(.*)) But what this regex does is to mat...
Send multiple highlights to Readwise in one action
Hi, sorry for asking help here because this script is a little difficult for me to adjust. I want to send multiple highlights to Readwise and find this Send to Readwise | Drafts Directory . This is exactly what I want, but can I make some adjustments? I don’t need to add “page” to every highlights. How can rewrite this script to delete “page” only keep “highlights”, “Title”, “Author”? Thanks for you time and kind help.
I spotted this earlier today, but have been travelling or busy with other things most of the day, so I didn’t get chance to look at it in more detail until this evening, and spent a few hours putting something together. Other than the phone and Drafts aspect, it was this that got me thinking. It sounded like this was purely a find operation (rather than edit), and the “highlighting” aspect also piqued my interest as the Drafts editor doesn’t really align itself to that sort of thing unless you...
I recently got asked by a relative to search for different words in a text. “Easy” I answered and was thinking of either a simple Python script or a regexp in BBEdit. Then came the next sentence, “I need to do it on my phone” and things got way more complicated for me. But I thought that perhaps it can be done in Drafts, and I’m sure it can be done but unfortunately Drafts is something that is a pretty unknown to me. From what I can see Drafts support regexp but it looks like searches can’t be...
Hi everyone I’m in the process of writing some light user-manual type material in the form of separate drafts in their own workspace. Once I’ve finished writing them I’d like to be able to ‘get them all out of the workspace’ in one batch, ideally. I haven’t decided how, yet. Is there a way that I could select a workspace and run the appropriate action on all drafts in that workspace, rather than having to go through and do each one manually? Thanks Ben
I am working on an Action that is supposed to transform text in this format: Mow the lawn to this format: [ ] #n/task Mow the lawn for {{ProjectName}} #s/scheduled The regex script I’m using is: const findRegex = /^- (.)*?/gm; // define replacement expression... const replaceWith = "- [ ]\#n/task $1 for \{{VacationName}} \#s/scheduled"; This works except that the $1 capture group is placed at the end of the reformatted task. Like this: [ ] #n/task for {{ProjectName}} #s/scheduled Mow t...
Sure glad to help! I‘m mostly using the On My Mind now since I often have just quick thoughts which I add to the on my mind draft and then process them later. I don’t see the inbox count for the On My Mind draft which is better for me and I can use the inbox count more precisely:) Just look what fits for you
Hi, I made an action which for me is one of the most useful ones in the last days. I store pretty much everything text related in drafts. To quickly sort it out i have a few actions (in different action groups) I normally run on them). To speed this up I created an action which loops through the drafts in my INBOX workspace and asks me for each of them what to do. I can select actions from a prompt and they will be enqueued and run after processing all drafts in the INBOX. You can customize...
Here’s this morning’s response from Readdle: Thank you so much for your emails and provided information. Let me apologize for the misunderstanding. I’ve just double-checked the information with our Quality Assurance team and would like to let you know the URL scheme, indeed, is available in Spark. However, the new line characters in the body text feature is not supported at the moment. Please be assured that I’ve added your kind request to our Wish List for the developers to look through an...
Please excuse me if I’m posting this in the wrong area of the Community. I much prefer Spark over Mail. Mail is very well supported by Drafts via the Mail Action Step, but I’m having trouble finding a similar level of support for Spark. Yes, there are four Actions for Spark in the directory, but none of them enables all the parameters of Spark’s x-callback-url scheme: subject, body, to, cc, and bcc. Specially, I need support for all these parameters other than bcc. How do I write my own Act...