Drafts

Drafts

814 bookmarks
Custom sorting
Taskpaper Formatting
Taskpaper Formatting
Missed this when it was originally posted. Will look into it and resolve in an update.
·forums.getdrafts.com·
Taskpaper Formatting
Taskpaper Formatting
Taskpaper Formatting
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...
·forums.getdrafts.com·
Taskpaper Formatting
Syntax highlighting YAML blocks within Pandoc Markdown files
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...
·forums.getdrafts.com·
Syntax highlighting YAML blocks within Pandoc Markdown files
Send multiple highlights to Readwise in one action
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.
·forums.getdrafts.com·
Send multiple highlights to Readwise in one action
Searching for words
Searching for words
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...
·forums.getdrafts.com·
Searching for words
Searching for words
Searching for words
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...
·forums.getdrafts.com·
Searching for words
Run action on all drafts in a workspace
Run action on all drafts in a workspace
Just to note, you can tap and hold on the “Select” button to get a menu with a “Select All” option.
·forums.getdrafts.com·
Run action on all drafts in a workspace
Run action on all drafts in a workspace
Run action on all drafts in a workspace
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
·forums.getdrafts.com·
Run action on all drafts in a workspace
Regular Expresesion Capture Group Positioning
Regular Expresesion Capture Group Positioning
yes sorry, missed this when I typed the regex again. doesn‘t make a difference in the example but include it if necessary 😉
·forums.getdrafts.com·
Regular Expresesion Capture Group Positioning
Regular Expresesion Capture Group Positioning
Regular Expresesion Capture Group Positioning
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...
·forums.getdrafts.com·
Regular Expresesion Capture Group Positioning
Process Drafts in INBOX Action
Process Drafts in INBOX Action
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
·forums.getdrafts.com·
Process Drafts in INBOX Action
Process Drafts in INBOX Action
Process Drafts in INBOX Action
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...
·forums.getdrafts.com·
Process Drafts in INBOX Action
Need Spark Action that Sends Copies
Need Spark Action that Sends Copies
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...
·forums.getdrafts.com·
Need Spark Action that Sends Copies
Need Spark Action that Sends Copies
Need Spark Action that Sends Copies
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...
·forums.getdrafts.com·
Need Spark Action that Sends Copies
List of Apps with x-callback-url spec
List of Apps with x-callback-url spec
Exactly! I had included it in a seperate list of Apps with unverified x-callback-url support. I’ve noticed that it’s still quite common for people to mix up URL schemes with x-callback-urls. There are also some developers / bloggers who mix these up in their own documentation or write-ups, so I get why this is confusing.
·forums.getdrafts.com·
List of Apps with x-callback-url spec
List of Apps with x-callback-url spec
List of Apps with x-callback-url spec
I’m new here and this is my first post on the Drafts community forum. Drafts has a rich and extensive documentation on it’s functionality and various use-cases, including integration of x-callback-url. The official x-callback-url website introduced a list of (third-party) Apps that support the specification. Throughout the years, several attempts have been made by members of the community to update / document the list of Apps. I.e One Tap Less_https://onetapless.com/library AppTalk_https:/...
·forums.getdrafts.com·
List of Apps with x-callback-url spec
iPad iOS Widget - Running Action and Cursor Placement
iPad iOS Widget - Running Action and Cursor Placement
I think I figured it out. I used this thread to work out which parts to edit from the “New Draft from Template” action - Using prompt results in New Draft with Template After looking at that, I commented (added “//“ before each like) out the code to be disabled like that person suggested. The script now looks like the below. I’m sure this looks terrible to anyone with experience, but I’m pleased it’s working! I guess I can now delete all the commented code. Here’s the script: //modified from...
·forums.getdrafts.com·
iPad iOS Widget - Running Action and Cursor Placement
iPad iOS Widget - Running Action and Cursor Placement
iPad iOS Widget - Running Action and Cursor Placement
Hi I have created a simple “insert text” action to create a template dated note. Essentially as follows: Title Created: “[[date]]” Body text When running the action within drafts, the cursor appears where I need it to - before the word “Body” in the example above. That allows me to immediately create the content of my note. When running the action from the iOS widget, however, the cursor doesn’t appear until I press on the screen. Is there a fix for that, or am I doing something wrong? Ma...
·forums.getdrafts.com·
iPad iOS Widget - Running Action and Cursor Placement
Insert Text From Other Drafts
Insert Text From Other Drafts
As an update, the auto complete functionality worked great! I now have another query, but I will start a new topic.
·forums.getdrafts.com·
Insert Text From Other Drafts
Insert Text From Other Drafts
Insert Text From Other Drafts
Hi everyone, Is it possible to insert text from another draft through an action? My use case: I keep various templates in one workspace within Drafts (meeting note, literature note, etc…) and would like to have actions to retrieve the content of a specific template and insert it into the current draft. Is this possible? I know, Drafts has a template system to retrieve template files from within the Finder/Files App but I would like to use Drafts itself as a repo for my templates because that...
·forums.getdrafts.com·
Insert Text From Other Drafts
HTTP Post data in raw?
HTTP Post data in raw?
Hi, sorry for the misleading. I’ll give it a try again. 😀
·forums.getdrafts.com·
HTTP Post data in raw?
HTTP Post data in raw?
HTTP Post data in raw?
As far as I known the HTTP | Drafts Script Reference (getdrafts.com) request only accepts json or form for data. In my case the server needs raw. (I’m playing with Zotero web api). Similar question seems to be there but no answers. Can I ‘POST’ Raw Data to a Web API? - Scripting - Drafts Community (getdrafts.com)
·forums.getdrafts.com·
HTTP Post data in raw?
How I Use Drafts - How Do You? (Feedback appreciated)
How I Use Drafts - How Do You? (Feedback appreciated)
I’ve been using Drafts awhile but never as the place where text starts. Since we gained the ability to use wikilinks I created what I really wanted in Drafts which was what I call connected notes. They rely on tags, workspaces, and actions to send some of the content on sometimes to Ulysses or Day One. For my use Drafts works very well for managing my little connected world of notes. Now with the wikilinks and being able to create really cool links like for workspaces I get a lot of use from the...
·forums.getdrafts.com·
How I Use Drafts - How Do You? (Feedback appreciated)
How I Use Drafts - How Do You? (Feedback appreciated)
How I Use Drafts - How Do You? (Feedback appreciated)
Drafts is my #2 most used app … behind email, and best follows the theme ‘capture first - process later’. I don’t, however, leverage many actions for text, posting to apps, email, etc. it’s primarily my note pad for everything! I use it for: … creating initial content for email, text, docs as my ‘capture first’ and then I finalize (then copy/paste) … I do use 2 actions - Add to List (I have 8 lists) and Day One Journal … My ‘Add to List’ action includes: 1) All Ideas capture; 2) Daily Journal...
·forums.getdrafts.com·
How I Use Drafts - How Do You? (Feedback appreciated)
Editing JavaScript
Editing JavaScript
Similar to @sylumer, I do most of my script development outside of Drafts, and I try as much as possible to do it entirely on my Mac. If I’m doing it on my i*OS device, then will put the script in the body of a draft and use an action to execute that body. For me, I leverage the FileBookmark feature agiletortoise enabled a few releases ago to point to my local git repo. The script is as such: let bookmark = Bookmark.findOrCreate("git"); let fm = FileManager.createForBookmark(bookmark); let c...
·forums.getdrafts.com·
Editing JavaScript
Editing JavaScript
Editing JavaScript
What tools are people using to create and edit Actions, i.e., write and edit JavaScript in Drafts? I’m going crazy doing it within Drafts on my iPhone. (Sorry if this question should have been posted in a different portion of the Community. 🥺)
·forums.getdrafts.com·
Editing JavaScript
Dictation in Mac OS drafts doesn't work with bluetooth mic
Dictation in Mac OS drafts doesn't work with bluetooth mic
I powered up my Parrot Bluetooth headset and was able to dictate directly into Drafts for at least a paragraph. I did have to click the button on the headset to get it to start. It stopped as soon as I hit a keyboard key, which makes sense.
·forums.getdrafts.com·
Dictation in Mac OS drafts doesn't work with bluetooth mic
Dictation in Mac OS drafts doesn't work with bluetooth mic
Dictation in Mac OS drafts doesn't work with bluetooth mic
I use dictation increasingly on iOS and also on Mac desktop — where I have encountered an unexpected behaviour. I can use a wired mic into the MacBook headphone socket and it works fine. My preferred way is to use a bluetooth mic on a headset. It works well with the conventional Apple fn-fn- dictation (which however fades out unpredictably) but the Drafts version of dictation, generally much more reliable, doesn’t appear to recognise a bluetooth mic (I have tried more than one). I have looked ...
·forums.getdrafts.com·
Dictation in Mac OS drafts doesn't work with bluetooth mic