Announce todo.txt open action

January 7, 2014 - 1 minute read -
Free/Libre and Open Source Software todotxt productivity mutt

The script adds a new action to todo.sh, the todo.txt command line client, which allows to open documents referenced in a todo item. If more than one document is available a small menu will be shown. This allows you to easily acces documents that are required to accomplish the task.

Todo.txt uses a simple text file to store your items. Each single line represents a task. To install the script you have to copy it to your TODO_ACTIONS_DIR which defaults to $HOME/.todo/actions.d.

Just type:

todo.sh open ITEM_NUMBER

The following attachement types are supported:

  • mail:* opens the mail in mutt (requires muttjump and a mail indexer e.g. notmuch. To convert mails from mutt into a task see mutt2todotxt

  • url:*|www.*|http://*|https://* opens the URL in a web browser e.g. http://www.todotext.com, url:www.todotxt.com or www.todotxt.com

  • note:* edit the note (requires the notesedit action). See https://github.com/the1ts/todo.txt-plugins

  • file:*|~/*|/* open the path with the installed default handler (requires xdg-open or open), e.g. file:/home/user/README.txt, /home/user/README.txt or ~/README.txt

The action is part of my todo.txt repository:

git clone git://gitorious.org/todo-txt-glatzor/todo-txt-glatzor.git