ee59233c36928c1e26bb08a7d0b7570c4277ff42
Implemented several suggestions by Jacobo de Vera:
> 1. [lines 539-551]: [...] replace the for loop with simply this:
> PADDING=${#LINES}
> 2. [line 558]: As the script now supports a 6 digit number of tasks,
> the first substitution should add 5 spaces instead of 2
> 3. [lines 606-613]: The first search item is processed before the for
> loop, and the loop does the same for the rest. Wouldn't making this
> more general make the code more readable?
The changes for suggestion #3 let me add a new feature: when VERBOSE is
enabled, the summary line prints more info -- and it prints it on every
run:
$ todo.sh ls "buy a"
34 Buy a portable gas can @errands +safe
--
TODO: 1 of 49 tasks shown from /home/harding/var/git/todo/todo.txt
Also, generalizing and centralizing the code added a small but
measurable speed increase.
No new known regressions were introduced.
TODO.TXT Manager
Version 2.1
Author: Gina Trapani (ginatrapani@gmail.com)
Last updated: 2/23/2009
Release date: 5/11/2006
License: GPL, http://www.gnu.org/copyleft/gpl.html
More information and mailing list at http://todotxt.com
Gina's deploy branch is here: http://github.com/ginatrapani/todo.txt-cli/tree/master If possible fork from there for most convenient integration.
Description
☑ A simple and extensible shell script for managing your todo.txt file.
http://todotxt.org
Languages
Shell
98.7%
Makefile
1.3%