Sorry for the late reply, too! Your idea looks fine. I was actually looking for something as simple as modifying the cookie directly here in [/] like we can in Loop Habit Tracker. Are you interested in implementing this feature?
Ihor Radchenko <[email protected]> writes: > [email protected] writes: > >> A numerical habit can be seen as a TODO entry with N number of nested >> TODOs. For my example, if I want to read 20 pages of a book, I can have >> 20 TODO entries nested under that one habit TODO with a [/] cookie. But, >> this is impractical. So, maybe, this can be abstracted away for >> numerical habits. I'm not sure if the existing [/] cookie should be >> used, or a new cookie should be introduced. > > Sorry for the late reply. > > AFAIU, you want some kind of progress measure for your task. > In this sense, cookies indeed make sense as they are also a progress measure. > The difference is that normal progress is computed as > > number of done headings + (optionally) number of checked checkboxes > / > number of todo+done headings + (optionally) total number of checkboxes > > However, there is nothing that is conceptually stopping us from counting > any given heading not once but several times. > For example, we can introduce a special properties like > :COOKIE_COUNT: 2 > :COOKIE_COUNT_MAX: 10 > > That will look like > > * TODO read book [16/101] > * DONE read preface (contributes 1 page) > ** TODO read chapter 1 with 100 pages > :PROPERTIES: > :COOKIE_COUNT: 15 > :COOKIE_COUNT_MAX: 100 > :END: > :LOGBOOK: > - [2026-03-29 Sun] Read 5 pages > - [2026-03-22 Sun] Read 10 pages > :END: > > -- > Ihor Radchenko // yantar92, > Org mode maintainer, > Learn more about Org mode at <https://orgmode.org/>. > Support Org development at <https://liberapay.com/org-mode>, > or support my work at <https://liberapay.com/yantar92> -- Khalid Rafi Sent with Emacs
