project(1)
π NAME π
okay bestie, meet the command this whole manual is about: counttodo β and no, the page itself is filed under project(1) in the General Commands Manual, so if you went looking for counttodo(1) and got handed project(1) instead, that's just how it's shelved, don't stress π.
counttodo returns a count of the active tasks in a todo.txt file. that's it. that's the job. icon behavior honestly π
β¨ SYNOPSIS β¨
counttodo [-f FILE]
π¦ DESCRIPTION π¦
it counts the number of active tasks in a todo.txt file. one number, coming right up π
but bestie, watch out β a bunch of stuff does not get counted, and the rules are lowkey specific:
- Empty or whitespace-only lines are excluded from the count. if it's just vibes and spaces, it's not a task πΈ
- Lines which have no context flag (
@foo) are excluded. no@tag, no entry, sorry babe π - Lines containing pending context flags (
@~foo) are excluded. the tilde is giving pending, and pending doesn't make the cut π - Comment lines, starting with a
#, are excluded.#= commentary, not content, periodt π
π OPTIONS π
-h,--helpβ print help and exit. shortest conversation ever, but so valid π«Ά-f,--fileβ specify thetodo.txtfile location. (Default via todo.txt --info) β so if you don't say where the file lives, it goes askingtodo.txt --infoinstead, iykyk β
π SEE ALSO π
go read these too, they're all part of the same little family π§
todo.txt-base(8)todo.txt(8)gtdcleanup(1)
and that's the whole page! this edition of project(1) was stamped November 2022 β mwah, iconic, no cap πβ¨π₯
π¦ where this page comes from
- ubuntu stonking: todo.txt-gtd 0.13 Β· GPL-2.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms