Last week I implemented a command line ruby script to post todos to Tracks website using API.
Source code: http://gist.github.com/45537
Save file in your ~/bin/ directory, be sure you have it in PATH. Also you need to set environment variables GTD_TODOS_URL, GTD_LOGIN and GTD_PASSWORD and add some aliases to your shell:
Command line options:
-p [N] - project id, default 1
-c [N] - context_id, default 1
-w [N] - deffer todo for N weeks, default 1
-m [N] - deffer todo for N months, default 1
GTD_TODOS_URL="http://localhost:4000/todos.xml"
GTD_LOGIN="admin"
GTD_PASSWORD="test"
export GTD_TODOS_URL GTD_LOGIN GTD_PASSWORD
# gtd shell aliases
alias td-bk="gtd -p 2" # breakout
alias td-sys="gtd -p 3" # sys
alias td-ppl="gtd" # people
alias td-personal="gtd -p 6"
# add more
Example of usage:
$ td-sys -w 2
move servers to ec2
install nagios
fix capistrano deploy
Use CTRL+D to finish your input. Note: Lines with more then 100 chars will not be submitted
TODO: improvements
* “[blog] write article about Assembla copy space feature” - create a todo with tag blog
* indented lines to be treated as todo notes.
You can use this command to post todos from IRC chats, jabber bots, etc. I used it to import my text files with TODOs
cat TODO.txt | gtd -p 1 -w 1
