emacs-orgmode@gnu.org archives
 help / color / mirror / code / Atom feed
* recursive checkbox counting
@ 2020-10-01  6:44 Alan Schmitt
  2020-10-01 11:26 ` Eric S Fraga
  2020-10-01 20:24 ` Tory S. Anderson
  0 siblings, 2 replies; 7+ messages in thread
From: Alan Schmitt @ 2020-10-01  6:44 UTC (permalink / raw)
  To: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: recursive checkbox counting
  2020-10-01  6:44 recursive checkbox counting Alan Schmitt
@ 2020-10-01 11:26 ` Eric S Fraga
  2020-10-01 12:14   ` Alan Schmitt
  2020-10-01 20:24 ` Tory S. Anderson
  1 sibling, 1 reply; 7+ messages in thread
From: Eric S Fraga @ 2020-10-01 11:26 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: recursive checkbox counting
  2020-10-01 11:26 ` Eric S Fraga
@ 2020-10-01 12:14   ` Alan Schmitt
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Schmitt @ 2020-10-01 12:14 UTC (permalink / raw)
  To: Eric S Fraga; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: recursive checkbox counting
  2020-10-01  6:44 recursive checkbox counting Alan Schmitt
  2020-10-01 11:26 ` Eric S Fraga
@ 2020-10-01 20:24 ` Tory S. Anderson
  2020-10-02  9:24   ` Alan Schmitt
  1 sibling, 1 reply; 7+ messages in thread
From: Tory S. Anderson @ 2020-10-01 20:24 UTC (permalink / raw)
  To: Alan Schmitt; +Cc: emacs-orgmode

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


^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: recursive checkbox counting
  2020-10-01 20:24 ` Tory S. Anderson
@ 2020-10-02  9:24   ` Alan Schmitt
  2020-10-02 13:40     ` Nick Dokos
  0 siblings, 1 reply; 7+ messages in thread
From: Alan Schmitt @ 2020-10-02  9:24 UTC (permalink / raw)
  To: Tory S. Anderson; +Cc: emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: recursive checkbox counting
  2020-10-02  9:24   ` Alan Schmitt
@ 2020-10-02 13:40     ` Nick Dokos
  2020-10-02 13:49       ` Alan Schmitt
  0 siblings, 1 reply; 7+ messages in thread
From: Nick Dokos @ 2020-10-02 13:40 UTC (permalink / raw)
  To: emacs-orgmode

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



^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: recursive checkbox counting
  2020-10-02 13:40     ` Nick Dokos
@ 2020-10-02 13:49       ` Alan Schmitt
  0 siblings, 0 replies; 7+ messages in thread
From: Alan Schmitt @ 2020-10-02 13:49 UTC (permalink / raw)
  To: Nick Dokos, emacs-orgmode

[-- 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 --]

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2020-10-02 13:52 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-10-01  6:44 recursive checkbox counting Alan Schmitt
2020-10-01 11:26 ` Eric S Fraga
2020-10-01 12:14   ` Alan Schmitt
2020-10-01 20:24 ` Tory S. Anderson
2020-10-02  9:24   ` Alan Schmitt
2020-10-02 13:40     ` Nick Dokos
2020-10-02 13:49       ` Alan Schmitt

Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).