Today is release day for the wonderful Drafts 5. There are a lot of great reviews out there, not least by Tim Nahumck, who’s published an amazingly comprehensive review over at MacStories. Also worth checking out Rosemary Orchard’s review over on her blog, and her overview of some of the other reviews published today.
- #Project Name
- @Tag Name
- !Natural Language Deadline
- *Checklist Item1Each of these, and combinations thereof, can be added after the name of the task and that information will be transferred to Things. Dates and reminders are automatically detected and parsed in natural language so no special characters are required. Here’s an example:
shopping tomorrow at 5pm #Personal publish blog post today #Blog ==Drafts presentation today !Friday #Work ==Meetings @Important *research *make presentation *follow up //Ask Bob’s opinion on thisThe headline new feature is block-based entry. Previously to add a number of new tasks with the same metadata, you would need to add that information to each line. So for example you might write something like:
task 1 today task 2 today task 3 todayNow you can just write the following:
today task 1 task 2 task 3This works with all of the metadata previously supported so even things like this are possible
today at 5pm !Friday #Project ==Heading @Tag 1 @Tag 2 *checklist item 1 *checklist item 2 //note task 1 task 2 task 3If a task has metadata that conflicts with the block heading, the task’s metadata wins, but it will still inherit anything that doesn’t conflict. So things like this are fine:
#Project !Friday Task 1 Task 2 !Monday Task 3Task 2 will be added to
Projectbut will have a different deadline to the other tasks. Multiple blocks can be entered within a single draft and should be separated by a blank line.
The other big new feature is project creation. Using the new syntax
+Project you can create a new project and add tasks to it. It works in two different modes: in-line and block-based. With the in-line mode you can just add
+Project to the end of any line and it will create a new project with that task as the only entry. Headings can also be created, and an area can be specified. Any other metadata is assigned to the task.
task +Project ==Heading #Area today at 5pm !FridayThis creates a project called
Areawith a heading and a single task under that heading. The task is assigned to today, has a reminder for 5pm, and has a deadline of Friday.
Block-based mode works in similar way with a couple of small changes: all metadata on the block heading is inherited by the new project, not the tasks, and multiple headings can be specified. Metadata must be specified for each task individually. If a task is given one of the headings specified in the block heading, it will be put under that heading, otherwise it will be assigned to the project with no heading.
+Project today at 5pm ==Heading 1 ==Heading 2 #Area @tag Task with no heading Task under heading 1 ==Heading 1 Task under heading 2 ==Heading 2In this case, the date and tag will be added to the project, not the tasks.
It is possible to combine the project creation feature with the block-based task metadata inheritance using two blocks, one which creates the new project, and then another which adds tasks under it. So for example, if I wanted to create an important work project due on Friday with three tasks I wanted to work on today, I could do the following:
+Project #Work !Friday @Important today #Project task 1 task 2 task 3I hope you enjoy using my script action. If you find any bugs or unexpected behaviour, you can let me know on Twitter. For more information on Drafts 5 more generally, check out the new site. If you’re interested in finding out about what other custom actions are available, have a look at the Action Directory, and if you want to talk to others about actions you’ve built or to get help, I’d encourage you to join the Drafts Community.
- I have also added support for customising these special characters. Poke around in the script and you will see where you can change them. ↩