todo.pl ratmenu

broder has been hacking on some better quicksilver integration for Hiveminder using todo.pl.

I don’t use a mac, but I don’t see why linux users shouldn’t get fun toys to. So I hacked up the following two-liner that uses todo.pl and ratmenu to pop up a list of tasks, and mark one as completed:

#!/bin/sh
todo.pl | perl -ne 'push @a,$2,"todo.pl done $1" if /^#([\w]+) (.+)$/;' \
               -e 'END{exec("ratmenu",@a)}'

I dropped it into my ~/bin and bound it to C-t x in my window manager (XMonad). I love it already.

No comments yet.

Leave a comment

XHTML: You can use these tags: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong> <pre lang="" line="" escaped="" highlight="">