Use local todo.txt for project specific task lists#187
Use local todo.txt for project specific task lists#187jammon wants to merge 5 commits intotodotxt:masterfrom
Conversation
|
Works like a charm. Lost an hour trying to play with TODO_DIR, TODO_FILE... on mac os and zsh and could not sort it out. IMHO This is a good candidate as default behavior. |
inkarkat
left a comment
There was a problem hiding this comment.
Nice idea. I can see the benefits, and the implementation looks solid. However, I think we need test coverage for:
- local directories
- the directory climbing
- falling back to the global location
- overrides via DONE_FILE, REPORT_FILE to collect archived tasks / reports globally
|
In the meantime, I've solved this via a wrapper script that has additional special handling for Git repositories (short-lived tactical development project-related tasks that should not pollute the main todo.txt file are my main use case).
That doesn't mean I'm against adding local file support to the main script. But as my example shows, just traversing the current directory upwards may be too simplistic to be useful, and custom solutions are easy to build or reuse (like custom add-ons). And we haven't seen any more requests for this in the past five years... |
I tend to have rather long task lists for single projects filling up my global todo.txt. Although I can tag them with "@my_project" I don't like the confusingly long task list.
So I extracted the project specific task into local todo.txt files, that I can add to the project's git repo. This change to todo.sh makes it search up the directory path for a local todo.txt and use this if it finds any. The default behaviour is unchanged (not looking for local todo.txt), but you can turn on using local task lists with
-lorTODOTXT_USE_LOCAL=1.