Todo.txt Command Line Interface Updated Today

February 18, 2009 at 9:17 am
by Gina Trapani

Todo.txt CLI 2.0 Not only am I the kind of hopeless nerd who spends a lot of time in the terminal, I'm also the kind who, in the face of countless elegant pieces of task management software, decides to write my own.

Today I released the newest version of my three-year-old todo.txt command line interface--a 600-line bash script that lets me add to, check off, and slice and dice my todo.txt file without a full-on editor.

To download it and try it out, or just see a screencast of it in action, check out my full writeup at Lifehacker this morning: Todo.txt CLI Manages Your Tasks from the Command Line.

Does Cygwin have any significant advantages over powershell?

I should probably get to know Cygwin even if it doesn’t, just to get familiar with the way things are done in a linux’y environment. My geek cred is sorely lacking in this area.

Hostile
Feb 19 09 at 3:01 am

I use Cygwin or the packaged on Mac Terminal with my todo.sh script. At first there was an error with the todo.sh 1.7 and Mac’s Terminal that involved -e’s appearing in my list results, but now with 2.0, it is entirely fixed. I like to run the Perl script on a nearby machine and use iChat or any other AIM client.

BFKelleher [+5]
Feb 19 09 at 5:39 pm

This looks fantastic, but I’m running into trouble getting it working.

I don’t keep anything in /home/tbramble/ unless it’s a directory or a .hidden file, so I have todo.sh and todo.cfg under a directory I use for executables not installed by the package manager, /home/tbramble/Bin/(todo/, in this case).

Therefore my alias looks like:
alias t=’~/Bin/todo/todo.sh -d “/home/tbramble/Bin/todo/todo.cfg”‘

However when I attempt to add an item, I get:
“Fatal error: Cannot read configuration file”

tbramble@wayfarer:~/Bin/todo$ ls -lh
total 24K
-rwxr—– 1 tbramble tbramble 904 2009-02-20 10:10 todo.cfg
-rwxr—– 1 tbramble tbramble 19K 2009-02-20 10:29 todo.sh

Help?

trevorbramble.com/ [+3]
Feb 20 09 at 7:33 am

Trevor I screwed up the -d parameter in 2.0–try 2.0.1 which has the fix. So sorry.

Gina Trapani [+145]
Feb 20 09 at 12:20 pm

Working splendidly now. Thanks, Gina!

For anyone still following this thread, I released version 2.1, which is available for download here.

Gina Trapani [+145]
Feb 24 09 at 10:40 am

Gina,
On a side note.. Looking at the screenshot, it appears that you use windows command prompt for cygwin. You might want to switch to rxvt than to windows command prompt.. Its feels so refreshing to work inside the RXVT terminal than the grumpy command prompt of windows.

The simple change is outlined here: http://blasphemousbits.wordpress.com/2007/02/12/rxvt-solves-many-cygwin-woes/

Hope you enjoy the switch as much I did.

Vijay Dharap
Mar 1 09 at 1:10 pm

Gina,
This script has an error. When you delete items, their lines don’t go away. Look!
Me

BFKelleher [+5]
Mar 11 09 at 2:14 pm

I’m having a problem with this on a Mac:

XXXXXXX:~ lleal$ todoapp/todo.sh add foobar
Fatal Error: ~/Documents/todo is not a directory

The folder exists and I even gave gave it full read-write permissions, any ideas?

Lou Leal
Mar 20 09 at 1:22 pm
Comments are closed. Thanks for reading!