Code Yarns ‍👨‍💻
Tech BlogPersonal Blog

How to use ya-todo-py

📅 2013-Dec-24 ⬩ ✍️ Ashwin Nanjappa ⬩ 🏷️ todo.txt, ya-todo-py ⬩ 📚 Archive

todo.txt is a simple and popular method to manage your todo list. I like this method because it uses a simple text file and so simple scripts or programs can be used as TODO list managers. This method was popularized by Gina Trapani, who also created a shell script to manage the todo list. I found the shell script a bit wanting in features, so I use ya-todo-py instead.

ya-todo-py is a todo.txt manager written in Python. You can get it from its Github repository here. You can either run its script to install it or just stash it somewhere.

$ --todo-dir /path/to/todotxt/dir

By default, this will list the items in your todo list sorted alphabetically.

$ --todo-dir /path/to/todotxt/dir -n
function todo --todo-dir /path/to/todotxt/dir -n $argv
# List tasks
$ todo

# Add task
$ todo add "Pick up bread and milk"

# Complete task 4
$ todo do 4

# Remove task 3
$ todo rm 3
# Add task with read tag
$ todo add "Study Nature paper +read"

# To list all tasks with +read
$ todo ls +read

Tried with: Python 2.7.6 and Ubuntu 14.04

© 2022 Ashwin Nanjappa • All writing under CC BY-SA license • 🐘📧