|
|
Log in / Subscribe / Register

Managing tasks with Org mode and iCalendar

July 14, 2020

This article was contributed by Martin Michlmayr

In an earlier article, I reviewed the todo.txt and Taskwarrior task managers. This article continues the process of examining task managers by looking at tools for Org mode, which is a system originally created for Emacs, as well as at tools that make use of the iCalendar standard. It is time to find out whether I can find a system that meets my needs.

Not just for Emacs

Org mode is an Emacs mode for note-taking and project planning, though Org's workflow and file format have found adoption outside of Emacs, as we'll see. Org mode makes it easy to keep notes, maintain to-do lists, plan projects, and more in Emacs. Worg, a community site for Org, describes it as a "powerful system for organizing your complex life with simple plain-text files". This sounds rather appealing since many readers probably appreciate the power of simple text files and might agree that modern life is getting increasingly complex.

What makes Org mode interesting is that it's not merely a task manager, but a system to organize your life. Org mode can also be used to keep a variety of notes, such as ideas, quotes, a list of links, or code snippets. What I noticed is that I often jot down thoughts and ideas throughout the day as I perform a range of activities, such as working on a problem, reading articles, or interacting with others. Some of those notes might just be random observations that I want to preserve, while others may lead to specific tasks later. Keeping both notes and tasks in the same document seems natural from this perspective.

Org mode offers a rich set of features, such as folding sections (i.e. hiding information under a particular heading), keeping a time record for tasks (clocking in and out), capturing notes or tasks from within Emacs or other applications (such as a web browser or PDF viewer), maintaining tables (including support for text spreadsheets), and exporting to other formats (such as HTML, LaTeX, or Open Document Format). In terms of tasks, Org mode sports features commonly found in task managers, such as states (e.g. TODO and DONE), task dependencies (expressed via sub-tasks), priorities (e.g. [#A] for the highest priority), and tags (e.g. :@home:).

These features can be used like this:

    * LWN
    ** DONE Write article about task managers, part 1
    ** TODO [#A] Write article about task managers, part 2 :@home:
    *** TODO [#A] Review Org mode
    SCHEDULED: <2020-07-09 Thu 12:00> DEADLINE: <2020-07-09 Thu 17:00>

A star denotes a headline and can be used for sub-sections (and sub-tasks for tasks). Since Org mixes tasks and notes, a note essentially becomes a task if it has a state (like TODO). Each section can have a planning line with keywords like SCHEDULED, DEADLINE, and CLOSED. A more detailed example, serving as a tutorial of the Org syntax, is available.

Org mode also has built-in support for agendas with scheduled tasks and deadlines. There are a number of tutorials showing how to implement task-management systems in Org mode, such as for the popular Getting Things Done (GTD) system.

Even though Org started as a mode for Emacs, the Org file format has been implemented by many other applications. Worg has a list of other tools, although that page seems somewhat out of date. Pandoc can convert Org files to other markup formats, Orga offers an Org parser in JavaScript, GitHub and GitLab render Org files automatically, and so on.

[Vim-OrgMode]

My editor of choice, Vim, offers a plugin based on the Org format called Vim-OrgMode (seen above). It supports basic functionality from Emacs's Org mode, such as folding, changing the state of tasks, and displaying an agenda. However, the functionality is more limited compared to Emacs (e.g. there's no support for tables). Another Vim plugin, Vim Do Too, also looks promising, but it is more "inspired by Org mode" than a fully compatible replacement.

[Orgzly]

For those who want to add tasks on the web or from a mobile device, org-web is one option. The web app runs in the browser instead of on a server, has support for Dropbox and Google Drive, and offers a lot of features, including an agenda view and tables. One potential shortcoming is that org-web is specifically optimized for mobile use. This is addressed by organice, a friendly fork of org-web, which is built for mobile and desktop browsers. Organice offers extensive documentation, and its comparison page highlights a number of advantages, such as support for WebDAV (which can be used to sync with Nextcloud).

Finally, Orgzly (seen at right) is a popular app for Android. Despite Orgzly having one core developer, development is pretty active. Orgzly supports saving Org files on Dropbox, using WebDAV, or to local storage. It offers many features one would expect from a task manager for a mobile device, such as reminders of scheduled events and deadlines. While adding geolocation information to tasks is supported, Orgzly doesn't yet have reminders based on the location. It does have a number of built-in filters (agenda, next three days, scheduled), and custom filters ("searches" in Orgzly) can be defined.

Overall, the Org ecosystem looks quite attractive. The file format is simple, yet powerful. While Org mode for Emacs is the most mature, there are a number of interesting solutions that expand the scope of Org beyond just Emacs.

Standards, standards, ... and iCalendar

After reviewing three different ways of storing tasks, one starts to wonder why there isn't a single standard to describe tasks. Of course, cynics will point to the xkcd comic about standards. As it turns out, though, there is an actual standard in the form of iCalendar, also known as RFC 5545. Many readers may be familiar with the ICS files sent out by email from applications such as Microsoft Outlook and Google Calendar, which contain event information in the form of VEVENT entries. But the standard also defines tasks, called VTODO entries, with the usual features needed to support them (priorities, progress, scheduled and due dates, dependencies, etc.).

[Tasks]

iCalendar is also a text-based format, although it's more complicated than todo.txt or Org, and is not usually edited manually. One attraction of iCalendar over the alternatives is that it has been designed with synchronization in mind; CalDAV can be used to synchronize calendars (including tasks). Calendars can be stored on Nextcloud (self-hosted or via one of the many providers) or on a self-hosted server using Radicale or Xandikos. Vdirsyncer is a command-line tool to synchronize calendars and contacts; DAVx5 does the same on Android.

There are many applications built around iCalendar. On Android, I first found OpenTasks. The app looks quite attractive and offers basic task management, but many important features are missing, including recurring tasks and sub-tasks. The GitHub issue for sub-tasks suggests that they would be implemented after recurrence, but that comment was made in 2017 and recurring tasks are still not implemented.

A more actively maintained Android app, although also having only one core developer, is Tasks, which is seen at the right. It is available on F-Droid and as Tasks.org on Google Play. Tasks originates from Astrid, which was a popular application many years ago, but its development stopped after the company behind it was acquired by Yahoo. (The Grumpy Editor reviewed Astrid back in 2011). Tasks feels quite polished and it has some nice gimmicks, such as the ability to assign not just a color to a tag but also an icon. You can hide tasks until a later date, define custom filters, and receive reminders based on your location. Tasks implements the core functionality of a task manager, although there are, of course, many open feature requests, such as for swipe gestures, progress bars, and Markdown rendering.

Since iCalendar is a standard, it's easy to use multiple applications to manage tasks. While I find Tasks useful on my phone to get reminders and to add tasks on the go, I prefer something on my desktop for more in-depth management. For this purpose, Nextcloud Tasks (seen below) looks quite appealing. It supports the core functionality of task management, such as sub-tasks, priorities, scheduled and due dates, and progress. Unfortunately, development is quite slow, although the developer (who works on Nextcloud Tasks in his spare time) actively comments on tickets and invites people to submit pull requests. Furthermore, the application would be vastly more useful with better integration with Nextcloud, such as implementing Nextcloud's concept of projects and integrating with other Nextcloud apps, such as Deck, a Kanban style organization tool.

[Nextcloud Tasks]

There are also some iCalendar solutions for the command line, although the offerings are not as mature as what's available for Taskwarrior. Todoman can be used to list, edit, and create tasks from the command line. There is also calcurse, a curses-based calendar which can display tasks.

In summary, iCalendar is a standard for events and tasks, which is implemented in a large number of tools. In addition to those introduced here, KDE's Korganizer, GNOME To Do, and others use the iCalendar format. One downside is that the format, while text-based, is more complex and hard to edit manually.

Summary

After reviewing four different systems to manage tasks, it's time to draw conclusions. First of all, I observed a trend all too common with open-source projects. While one attraction of open source is the sheer diversity of what's available, it's also a curse: many of the reviewed task-management systems had several half-baked solutions instead of one solution for each category (command-line, web, and mobile). If more developers joined forces to focus one on solution, we might have more mature and longer lasting projects.

Having said that, I feel that all of the four systems have some appeal and offer robust solutions. Personally, todo.txt seems too simple to me. While the format is definitely quite attractive to some users, I find Org's format to be more expressive, yet simple enough to edit by hand. The simple addition of headers in Org, compared to todo.txt, by itself makes a huge difference, since you can structure your file much better. A better todo.txt editor could potentially structure the file to provide similar functionality, however, perhaps by creating virtual sections based on tags.

When I started my review, I was fairly sure I was looking for a combination of one mobile and one desktop (native or web) application to manage tasks. While I'm traditionally a command-line person, it seems that task management would benefit from a modern, visual design that allows you to easily sort through tasks, separating important tasks from the rest. Yet, I was surprised by Taskwarrior's highly capable text-based tools that made the management of tasks easy. I also found Org appealing since I spend a lot of time editing texts; managing tasks in my editor feels right. Unfortunately, the Org plugins for Vim are not nearly as featureful as Org mode for Emacs.

The most future-proof choice seems to be iCalendar since it's an actual standard; its level of adoption will likely increase over time. Unfortunately, the format isn't easy enough for routine manual editing and I'd rather store an Org file in Git than an iCalendar file. While both are plain-text files, a diff on the Org file will be easier to read.

In an ideal world, I would have Taskwarrior with an iCalendar backend, so I could combine the robust text-based tools from Taskwarrior with the attractive web and mobile solutions for iCalendar. And even though I've mostly been leaning toward an iCalendar-based solution so far, I can't stop thinking about Org's powerful, yet simple system, which feels very natural.

While I haven't fully made up my mind, one conclusion is clear, though. Apart from todo.txt, which wouldn't work for me personally, I find all of the systems to be useful and interesting in their own ways. I could make any of the three systems work. The only question is which one best fits into my workflow and the only way to find out is to enter my tasks and see how I get along. In the worst case, I'll add a task to revisit this topic in another year.

Index entries for this article
GuestArticlesMichlmayr, Martin


to post comments

Managing tasks with Org mode and iCalendar

Posted Jul 14, 2020 6:54 UTC (Tue) by erwaelde (subscriber, #34976) [Link] (2 responses)

Hello,
nice article! Thank you!

I'm using emacs/org-mode myself, and I got hooked by one single item, for which I needed a solution *now*: clocking times. So I started with that and still do this after all these years. I added tasks, agenda views and more importantly regular reviews only recently.

The main thing imho is this: I (or anyone) needed to establish regular rituals (daily inspection of inqueue; weekly review of what I have done, what I need to do next) to keep on top of my tasks much more than the selection of any particular tool. For me org-mode was a natural choice, because I basically live in emacs.

Cheers,
Erich

Managing tasks with Org mode and iCalendar

Posted Jul 14, 2020 7:46 UTC (Tue) by weberm (guest, #131630) [Link] (1 responses)

For tracking time, one may look to timewarrior; it comes from the author(s) of taskwarrior as well and integrates with it: https://timewarrior.net/docs/taskwarrior.html

Managing tasks with Org mode and iCalendar

Posted Jul 14, 2020 13:22 UTC (Tue) by anarcat (subscriber, #66354) [Link]

I believe what erwaelde was saying is that you can use org-mode itself for time tracking. I have done that myself, using https://orgmode.org/manual/Clocking-Work-Time.html#Clocki...

It's pretty awesome. I've tried *many* timetrackers (and even wrote a few myself), and this was the simplest, most efficient solution I have found. There are tools to convert this data into something that ledger can understand, and from there billing is a few commands and latex templates away! :)

See also

https://github.com/anarcat/ledger-timetracking
https://github.com/anarcat/org2tc

Managing tasks with Org mode and iCalendar

Posted Jul 14, 2020 12:36 UTC (Tue) by pixelpapst (guest, #55301) [Link]

One thing I still miss after migrating the world from subversion to git is the in-built WebDAV server that exposes the versioning via this standard API.

If we had something like that, we could start designing an extension that provides a CalDAV server, but stores the data in a git backend in org-mode (or Taskwarrior) files, and converts on the fly. (It would probably have to use a specific subset of the format that can hold UUIDs etc.)

I know some Debian folks did something similar for CardDAV about a decade ago, but I'm not aware of anything for CalDAV.

Managing tasks with Org mode and iCalendar

Posted Jul 14, 2020 21:06 UTC (Tue) by mathstuf (subscriber, #69389) [Link] (4 responses)

Thanks for the articles. I've tried to use taskwarrior for many years and the perennial problem of actually using the list continued to be the problem. Now that I have a mobile client, there's a lot more motivation to complete tasks since they "follow me around". I've personally landed on todoman/vdirsyncer and Tasks syncing via my Fastmail account. I also have Orgzly on the phone (also synced to Fastmail, but unused by any other client) for lists. Mainly those involving tasks to do in games I'm playing, shopping lists, or long-term wishlists for things like book and movies.

I do wish I had burndown charts and other statistics like taskwarrior provided and a way to mark tasks as "whoops, missed that" instead of marking such as "done" for those that are more temporally driven (like a daily walk).

Managing tasks with Org mode and iCalendar

Posted Jul 20, 2020 14:35 UTC (Mon) by robbe (guest, #16131) [Link] (3 responses)

> and a way to mark tasks as "whoops, missed that" instead of marking such as
> "done"

In Orgzly, you can define additional states under Settings → Notes & Notebooks → Note → States. Only the TODO/DONE states are available quickly (e.g. via swiping), but editing an entry offers your custom state next to the Flag.

That said, for recurring events like a daily walk, I’d schedule these with a repeat time. It does not matter much to which „done“-like state this kind of task is set: it will stay in TODO indefinitely, just advancing the schedule time to the next occurance.

But you may prefer to generate a list of individual „TODO Take a walk on <2020-07-XX>“ events, set each of these to DONE or MISS, and later do some statistics on that.

Managing tasks with Org mode and iCalendar

Posted Jul 21, 2020 14:41 UTC (Tue) by mathstuf (subscriber, #69389) [Link] (2 responses)

That's useful to know, except I don't track such things in Orgzly. Might be useful for some of my recurring grocery needs though.

Managing tasks with Org mode and iCalendar

Posted Jul 22, 2020 13:10 UTC (Wed) by robbe (guest, #16131) [Link] (1 responses)

Sorry, if I misunderstood. So, in which software package /do/ you lack these features:

> I do wish I had […] and a way to mark tasks as "whoops, missed that"

Managing tasks with Org mode and iCalendar

Posted Jul 22, 2020 13:40 UTC (Wed) by mathstuf (subscriber, #69389) [Link]

In Tasks (though maybe it's missing in iCal/CalDAV). All I can do is mark a task as "Done". I suppose I could delete, but that doesn't help determine any stats.

Taskwarrior with an iCalendar backend

Posted Jul 26, 2020 8:31 UTC (Sun) by jspricke (guest, #123988) [Link]

> In an ideal world, I would have Taskwarrior with an iCalendar backend, so I could combine the robust text-based tools from Taskwarrior with the attractive web and mobile solutions for iCalendar.

I have written a plugin for Radicale to serve Taskwarrior data through CalDAV:
https://github.com/jspricke/radicale-remind

Managing tasks with Org mode and iCalendar

Posted Sep 22, 2020 14:54 UTC (Tue) by amigo421 (guest, #141844) [Link]

hi

I also use Orgzly for mobile and it's perfect for my goals
but I can't find something for the desktop , linux or windows,
a lot of various plugins for the editors(emacs/vim/vscode etc, etc)
all this is the editing for - preparing for the use, but not a using itself.
from my perspective Orgzly is highly adopted for the using:
- reminders
- beautiful rendering

So my primary expectation is a well UI designed task manager for end-users,
something like "desktop Orgzly"

they (users) don't require too much editing but require flexible UI
for popup reminders , with updating statuses, ability to re-schedule,
moving tasks between the lists etc., mostly - visually

is there something for that?

THanks

Managing tasks with Org mode and iCalendar

Posted Mar 25, 2021 14:04 UTC (Thu) by rolandog (guest, #151303) [Link]

Perhaps an integration could be done by setting the org-todo-keywords like:

;; RFC 5545 compatible keyword sequences; shortcuts of first element in each
;; sequence match those of the capture templates' shortcuts
(setq org-todo-keywords
      '((sequence "NEEDS-ACTION(t)" "IN-PROCESS(i)" "|" "COMPLETED(d)")
        (sequence "TENTATIVE(e)" "|" "CONFIRMED(c)")
        (sequence "DRAFT(j)" "|" "FINAL(f)")
        (sequence "|" "CANCELLED(C)")))

Then, you would modify your workflow and capture templates to handle entries in a 'calendar.org' file:

;; capture templates to accommodate single-file workflow
(setq org-capture-templates
      '(("t" "Todo" entry (file+headline "~/org/calendar.org" "Tasks")
         "* NEEDS-ACTION %?\n   %i\n   %a")
        ("e" "Event" entry (file+headline "~/org/calendar.org" "Events")
         "* TENTATIVE %?\n %i\n   %T\n   %a")
        ("j" "Journal" entry (file+datetree "~/org/calendar.org" "Journal")
         "* DRAFT %?\n   Entered on %U\n   %i\n   %a")))

Also, somehow, translate DEADLINE and SCHEDULED dates with timestamps into iCal properties in a drawer...

And, finally, have some import/export magic to translate between the two, which is easier said than done.


Copyright © 2020, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds