a03a3bf66bdf82020b6e02787195f2574379409a
Commit f55f5e8b5f introduced a known regression on Windows that
prevented users from using configuration files starting with C:\. The
following logic fixes this:
+ ## If the file starts with a "/" use absolute path. Otherwise,
+ ## try to find it in either $TODO_DIR or using a relative path
+ if [ "${1:0:1}" == / ]
+ then
+ ## Absolute path
+ src="$FILE"
+ elif [ -f "$TODO_DIR/$FILE" ]
+ then
+ ## Path relative to todo.sh directory
+ src="$TODO_DIR/$1"
+ elif [ -f "$FILE" ]
+ then
+ ## Path relative to current working directory
+ src="$FILE"
+ else
+ echo "TODO: File $FILE does not exist."
+ exit 1
+ fi
New _list function takes a filename and a list of search expressions.
We no longer use exec to call ourselves recursively.
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%