4 ms·
To answer some of the comments made already, and to preempt others, I largely hacked "t-" together because I wanted to see if "t" would be worth bothering with.
by RiderOfGiraffes 16y ago
To answer some of the comments made already, and to preempt others, I largely hacked "t-" together because I wanted to see if "t" would be worth bothering with. It seemed little better than just having a text file and so I didn't really see the point. But equally (I thought) I could be wrong.
But "t" didn't run on my very old, stick-it-in-the-corner-and-occasionally-play machine (which only has Python 2.2.1) so I spent a happy hour putting this together, more-or-less at random.
I'm finding it's helping, but maybe that will only be till the novelty wears off.
- RBerenguel 16y agoI think this would suit a Nanonote (Qi Hardware's pocket computer), to use for task management. I use emacs' org mode in it, but the time it takes to boot (15 seconds)+opening emacs (I didn't check, but probably as long) make it too cumbersome. When I have it connected for downloading things I'll try t- (I have debian in it). Thanks for sharing it, these one-hour happy projects are the most fun to read and hack
- RiderOfGiraffes 16y agoCool - let me know how you get on, and whether I can help.
- RBerenguel 16y agoGot it working without any problems after adding the "warnings" suggestion above. It is slightly slow (well, it is python and the Nanonote only has 32Mb RAM, taskwarrior is snappier, though, but that's what you get with C, I guess). I found an odd thing: I added twice a task with the same name, and the random number is the same, i.e. t- test -> 098f test, doing it again results in 098f test twice. I guess the "random" number is just some hash applied to the string, but this means that let's say, if I put three "do the laundry" (3 washmachines, for example), when I remove them all three will be deleted at once.
- RiderOfGiraffes 16y agoYes, the "random" string is a hash of the string, but no, removing one does not remove all. It only deletes one instance of the item. A subsequent "-f" will remove the next, and so on. I specifically had this usage case in mind, and I do that myself.
- RBerenguel 16y agoGreat then!