You initially showed the following example:
#+begin_example
* 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:
#+end_example

But, one can have a case as simple as:
#+begin_example
* TODO read 20 pages of the book [10/20]
#+end_example

If this is impossible, we would need:
#+begin_example
* TODO read book [10/20]
** DONE read 20 pages
:PROPERTIES:
:COOKIE_COUNT: 10
:COOKIE_COUNT_MAX: 20
:END:
#+end_example

We are modifying the cookie via the properties COOKIE_COUNT and 
COOKIE_COUNT_MAX. If a certain entry with cookie has no subheading and contains 
those properties, we can additionally use that to calculate the cookie. Then, 
if changing the cookie [/] values by hand and doing C-c C-c (or org-shiftup) 
could modify those properties, this might work. The idea is similar to LOGBOOK.

Ihor Radchenko <[email protected]> writes:

> Khalid Rafi <[email protected]> writes:
>
>> What you understood initially was right. I just asked if it were
>> possible to directly update cookie count by typing inside [/]. Maybe we
>> can use org-shiftup for that?
>
> I am not sure how that would work.
> Currently, all the cookies are calculated from todo values and
> (optionally) checkboxes. If cookies can be changed by hand, it will
> become ambiguous.
>
> -- 
> 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

Reply via email to