ii.do, pronounced I-do (as in "Do you solemnly swear to complete all tasks till death do us part?" :-), is a simple bash script which can be used to keep track of a todo list.
After being inspired by the simplicity of Markdown syntax and Todo.txt, a commandline todo script, I decided to write my own script that combined both aspects.
The result is a simple todo.markdown
file which you can easily create in your home directory and edit using any text editor (though I recommend one which has syntax highlighting such as VIM).
Improvements to HTML outputted version (using -H flag) includes:
- Click on a heading or task to edit it inline in the browser
- Sort tasks within it's task heading by dragging it
- Tick the checkbox to mark the completion of a task
- Changes are automatically saved to local storage
- Indicate if what is showing on the HTML page is from local storage
- Clear local storage by clicking on the indicator to revert to content of HTML page
-
Create an empty todo.markdown file in your UNIX home directory or use my sample file.
-
When editing the file, use the following format.
# Top level heading
* Task 1
* Task 2
* etc.
## Sub heading
* Sub Task 1
* Sub Task 2
* etc.
- Mark a task as completed by preceding it with a 'x'
* x Task 1 is complete
- Mark a task as important by preceding it with a '!'
* ! Task 1 is very important
- Define a priority as either a letter or number in front of task
* (1) Do Task 1 first
* (2) Then do Task 2
- Set a due date for a task by ending with "by mm/dd/yyyy"
* Task 1 by 12/31/2013
- To view tasks from anywhere define an alias in your ~/.bash_profile or ~/.bashrc
alias t='~/Downloads/ii.do/ii.do'
- To use a different todo file use the -f option with full path to the file.
alias t='~/Downloads/ii.do/ii.do -f ~/Dropbox/todo.md'
- To quickly launch the editor (vi by default, else $EDITOR) and edit the todo file
t -e
- Get a count of pending tasks
t -n
- Change Shell prompt to always show number of pending taks
t -S "$PS1" >> ~/.bash_profile
- Export iido list as a self contained HTML file to email or track task completion locally
t -H > iido.html
For a complete set of options do t-h
My blog post with an embedded talk on ii.do
Copyright © 2018 Buddhika Siddhisena
Licensed under WTFPL