[-- Attachment #1: Type: text/plain, Size: 549 bytes --] Hello, I'm trying to recursively count checkboxes, with intermediate counting: * [0/0] 2020 :PROPERTIES: :COOKIE_DATA: checkbox recursive :END: ** [1/1] Week 39 - [X] [[file:2020-09-29.org][§:2020-09-29 (Tuesday)]] ** [2/2] Week 36 - [X] [[file:2020-09-08.org][§:2020-09-08 (Tuesday)]] - [X] [[file:2020-09-07.org][§:2020-09-07 (Monday)]] Unfortunately I don't know what property I need to set on the top-level node to recursively count everything. I would like to see [3/3] there. Is there a way to do it? Thanks, Alan [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 528 bytes --]
On Thursday, 1 Oct 2020 at 08:44, Alan Schmitt wrote:
> I'm trying to recursively count checkboxes, with intermediate counting:
I think you can only do this for lists of lists. In your case, you
would have the 2020 headline but all subheadings would be list elements
with the cookie. You would keep the recursive property in the top
headline.
But, for the record, I would like to be able to do what you want as
well. It just doesn't seem possible currently.
--
: Eric S Fraga via Emacs 28.0.50, Org release_9.4-38-g16f505
[-- Attachment #1: Type: text/plain, Size: 627 bytes --] Hello Eric, On 2020-10-01 12:26, Eric S Fraga <e.fraga@ucl.ac.uk> writes: > On Thursday, 1 Oct 2020 at 08:44, Alan Schmitt wrote: >> I'm trying to recursively count checkboxes, with intermediate counting: > > I think you can only do this for lists of lists. In your case, you > would have the 2020 headline but all subheadings would be list elements > with the cookie. You would keep the recursive property in the top > headline. Thank you for the suggestion, it works indeed. > But, for the record, I would like to be able to do what you want as > well. It just doesn't seem possible currently. I agree. Best, Alan [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 528 bytes --]
The way I've made this work is with the following property:
:COOKIE_DATA: ALL
But I suppose I haven't tried if that's fully recursive.
HTH,
- Tory
Alan Schmitt <alan.schmitt@polytechnique.org> writes:
> Hello,
>
> I'm trying to recursively count checkboxes, with intermediate counting:
>
> * [0/0] 2020
> :PROPERTIES:
> :COOKIE_DATA: checkbox recursive
> :END:
> ** [1/1] Week 39
> - [X] [[file:2020-09-29.org][§:2020-09-29 (Tuesday)]]
> ** [2/2] Week 36
> - [X] [[file:2020-09-08.org][§:2020-09-08 (Tuesday)]]
> - [X] [[file:2020-09-07.org][§:2020-09-07 (Monday)]]
>
> Unfortunately I don't know what property I need to set on the top-level
> node to recursively count everything. I would like to see [3/3] there.
> Is there a way to do it?
>
> Thanks,
>
> Alan
[-- Attachment #1: Type: text/plain, Size: 319 bytes --] On 2020-10-01 14:24, torys.anderson@gmail.com (Tory S. Anderson) writes: > The way I've made this work is with the following property: > > :COOKIE_DATA: ALL > > But I suppose I haven't tried if that's fully recursive. Thank you for the suggestion. I gave it a try, and unfortunately it does not work. Best, Alan [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 528 bytes --]
Alan Schmitt <alan.schmitt@polytechnique.org> writes: > On 2020-10-01 14:24, torys.anderson@gmail.com (Tory S. Anderson) writes: > >> The way I've made this work is with the following property: >> >> :COOKIE_DATA: ALL >> >> But I suppose I haven't tried if that's fully recursive. > > Thank you for the suggestion. I gave it a try, and unfortunately it does > not work. > Not sure whether this will work (or whether it will help in your case): https://emacs.stackexchange.com/questions/60710/is-there-any-way-of-getting-overview-statistics-for-all-checkboxes-in-a-given-or/60747#60747 There are some links to other questions on Emacs SE that might (or might not) be helpful. > Best, > > Alan > -- Nick "There are only two hard problems in computer science: cache invalidation, naming things, and off-by-one errors." -Martin Fowler
[-- Attachment #1: Type: text/plain, Size: 494 bytes --] On 2020-10-02 09:40, Nick Dokos <ndokos@gmail.com> writes: > Not sure whether this will work (or whether it will help in your case): > https://emacs.stackexchange.com/questions/60710/is-there-any-way-of-getting-overview-statistics-for-all-checkboxes-in-a-given-or/60747#60747 > > There are some links to other questions on Emacs SE that might (or > might not) be helpful. Thank you for the suggestion. I think I might stay with nested lists at the moment, as it works for me. Best, Alan [-- Attachment #2: signature.asc --] [-- Type: application/pgp-signature, Size: 528 bytes --]