From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mp2 ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by ms0.migadu.com with LMTPS id 6Oo/OInN+mA8bwEAgWs5BA (envelope-from ) for ; Fri, 23 Jul 2021 16:09:13 +0200 Received: from aspmx1.migadu.com ([2001:41d0:2:4a6f::]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits)) by mp2 with LMTPS id MMD0M4nN+mA9FwAAB5/wlQ (envelope-from ) for ; Fri, 23 Jul 2021 14:09:13 +0000 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by aspmx1.migadu.com (Postfix) with ESMTPS id 81D5ABBE9 for ; Fri, 23 Jul 2021 16:09:13 +0200 (CEST) Received: from localhost ([::1]:54816 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1m6vrU-0003ZK-9S for larch@yhetil.org; Fri, 23 Jul 2021 10:09:12 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:44050) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1m6vpU-0002GS-F4 for emacs-orgmode@gnu.org; Fri, 23 Jul 2021 10:07:08 -0400 Received: from mail-ot1-x330.google.com ([2607:f8b0:4864:20::330]:46619) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1m6vpS-00050C-QU for emacs-orgmode@gnu.org; Fri, 23 Jul 2021 10:07:08 -0400 Received: by mail-ot1-x330.google.com with SMTP id v8-20020a0568301bc8b02904d5b4e5ca3aso1291157ota.13 for ; Fri, 23 Jul 2021 07:07:01 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:reply-to:from:date:message-id:subject:to; bh=lbrLbSQJh1yRVQfmIrmaptTTcTajKnUqKLjKWMt3A/U=; b=jhy1RTNLkiSBYTHRYd+Pl1dqREAZIf9RXC2n4Puu+rp7MtknXown7JXBWPAEjF5QjC 54V7+IfWXW/Mvhd7/lXlcUfjEQFC6R5QxNNVVnK4P5XNWiC0yEJ9rewuDoE3FVOevBPs Qi+DhQejtdckkn8DvwiNxpLwuCENOgeTldKStdlcZDwwqZGgXMboFigbcaSkzMF0oYOF oTHt15XKyOxtTO0kj8we6WVESlhdmzIx5s7BPu/NU+435dZ+RG6HTsouUuHW3AdzOV9X 0O1X5jTGQ3YwrgVaSeBSdINgmnkcfHdpAwvPXHAykJ+vChpGT6lmei6ZoVXJjLCp6WAP tbSg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:reply-to:from:date:message-id :subject:to; bh=lbrLbSQJh1yRVQfmIrmaptTTcTajKnUqKLjKWMt3A/U=; b=WBhwkrww2ULSdJpaXdMbipttFULWMP+RU8+eNMoit0kf4FsnnoEtviU6N+E4c0HCIG JwNQP3M88KQa+OobAxQAyvFestY76eboWDe4opuNU1f8nfVqh5sto3TBLSlCpcgrKhed UGDgDbwnOP511+q6NcRkcqfxOtwiWvrlWM8YUJivDeRpDdOOWnF2ohZPQ8qH5+I7WCd+ GAOhjxwWHyLzEkqRQE/bqI48HeqKF1JSR+0/2doRIX/SJfowWaej/P8f10b4X64J5fBM vdw3/TVP6Azd2lsljxetuu2eSa/bGET8PSfoUstR1QMXhpI97yY4a1SOkSDPoXHDmZRo RZyg== X-Gm-Message-State: AOAM533Yj5KhKvZC/x/vDuoKRbLes4SYYLrJJGZwjcO0+ks3lYNCh0Qf GQTiZTVWOd9UARSqIEK/1NCuTp9KxDogCKj8q4ivEYnPAOOjoA== X-Google-Smtp-Source: ABdhPJy9gJ9jsmDrzd071zp9pB3IfnzAiGIr5H2EAGTjYNBageV/nETLmHLj9UeC7piOBjtFIRidXs3K5Ket3WKA5Vc= X-Received: by 2002:a05:6830:114f:: with SMTP id x15mr3106565otq.356.1627049220226; Fri, 23 Jul 2021 07:07:00 -0700 (PDT) MIME-Version: 1.0 From: George Mauer Date: Fri, 23 Jul 2021 09:06:49 -0500 Message-ID: Subject: Cascading cookie counts To: emacs-orgmode Content-Type: multipart/alternative; boundary="000000000000cdc3bb05c7caeac8" Received-SPF: pass client-ip=2607:f8b0:4864:20::330; envelope-from=gmauer@gmail.com; helo=mail-ot1-x330.google.com X-Spam_score_int: -6 X-Spam_score: -0.7 X-Spam_bar: / X-Spam_report: (-0.7 / 5.0 requ) BAYES_05=-0.5, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, FREEMAIL_FROM=0.001, HTML_MESSAGE=0.001, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=ham autolearn_force=no X-Spam_action: no action X-BeenThere: emacs-orgmode@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Reply-To: gmauer@gmail.com Errors-To: emacs-orgmode-bounces+larch=yhetil.org@gnu.org Sender: "Emacs-orgmode" X-Migadu-Flow: FLOW_IN ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=yhetil.org; s=key1; t=1627049353; h=from:from:sender:sender:reply-to:reply-to:subject:subject:date:date: message-id:message-id:to:to:cc:mime-version:mime-version: content-type:content-type:list-id:list-help:list-unsubscribe: list-subscribe:list-post:dkim-signature; bh=lbrLbSQJh1yRVQfmIrmaptTTcTajKnUqKLjKWMt3A/U=; b=RhxSKdDDpPJ1XqEua3qVFxzpzQhvhiFS1ehjpNsXcHQjJsnvgmaAt80lkGtslKtLDonaH2 668FXWKTiLnUzObxZsYSePcRSEq6jeBGuC+9wMZpqy2nHJM+D+7Vwznq5YmEvnZv7a4/bF 5ugeXVx8YPZ6DwsEfGqnv+aj4RQZ92cKXXUX05wtJVsSaRw3Q+3p6iCe2EcnJ1qmuG+Leq +lMOgNz/46TiTtHW2wBWmvqFjYbFzXnG5zlzhwWk16WehTV4NL3yTc+0ag3Wh+pvBbfoEb UELlY2TvNXcVjSQGoDSOOp0IE/43cdzxBkkP6ztyS1fwY45Vlvj5XZs5xr51dg== ARC-Seal: i=1; s=key1; d=yhetil.org; t=1627049353; a=rsa-sha256; cv=none; b=Ty+4WjtChQNUWCKrMJG6uPuQsnoXR0XGV3fLfohy/rHwJn34pHOqdmXwvI78XLXkeLECxD kgjQQajuy+T7Gn059oh1GAwo5LIaL3RUv3Z6Y2HREJbgCHP3Yy8N3YPO6CLi8gAmKlUmWs Y+9LDMZUN/j7o2KtYNX/Yc4O+Lv0UB5bDYiW7AIiajZOb3lrCZwjYPtrcjl824ZE5e7XXr jcuDswAS6konPN0kgqpMfmB0kQ3ZzmIntZuZkmJiueIhwssOWgse9lGA4zINaG6Gt17S5k hg70LJiVuzMaJWa9PvEO944EXFqxQjjfb0TpTOZIzteaigMVYZ9qeTP+7vZ9bw== ARC-Authentication-Results: i=1; aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jhy1RTNL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Spam-Score: -3.12 Authentication-Results: aspmx1.migadu.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=jhy1RTNL; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (aspmx1.migadu.com: domain of emacs-orgmode-bounces@gnu.org designates 209.51.188.17 as permitted sender) smtp.mailfrom=emacs-orgmode-bounces@gnu.org X-Migadu-Queue-Id: 81D5ABBE9 X-Spam-Score: -3.12 X-Migadu-Scanner: scn0.migadu.com X-TUID: uQtLvtRnueoH --000000000000cdc3bb05c7caeac8 Content-Type: text/plain; charset="UTF-8" * Cascading Checkbox Cookie Counts I would like checkbox cookies to show the total of all cookies beneath them regardless of hierarchy nesting. The code for ~org-update-checkbox-count~ is more complex than I expected so before spending time digging into this, maybe someone here has a tip? ** This should show 3/5 [1/2] - [X] Done - [ ] Not Done ** Nesting level 1 - [ ] Not Done - [X] Done ** Nesting level 2 *** Nesting level 2.1 - [X] Done ** Cookie data recursive doesn't seem to affect this My understanding is that there's a cookie data ~~ property flag you can use. I assumed that's what this was for but it seems to not affect things (I've tried both with and without the angle braces, but the regex seems to imply braces which is odd) *** This should show 3/5 [1/2] :PROPERTIES: :COOKIE_DATA: :END: - [X] Done - [ ] Not Done *** Nesting level 1 - [ ] Not Done - [X] Done *** Nesting level 2 **** Nesting level 2.1 - [X] Done --000000000000cdc3bb05c7caeac8 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
* Cascading Checkbox Cookie Counts
=C2=A0 I would like = checkbox cookies to show the total of all cookies beneath them regardless o= f hierarchy nesting.
=C2=A0 The code for ~org-update-checkbox-count~ is = more complex than I expected so before spending time digging into this, may= be someone here has a tip?
=C2=A0
** This should show 3/5 [1/2]
= =C2=A0 =C2=A0- [X] Done
=C2=A0 =C2=A0- [ ] Not Done
** Nesting level = 1
=C2=A0 =C2=A0- [ ] Not Done
=C2=A0 =C2=A0- [X] Done
** Nesting l= evel 2
*** Nesting level 2.1
=C2=A0 =C2=A0 - [X] Done
=C2=A0 =C2= =A0 =C2=A0
** Cookie data recursive doesn't seem to affect this
= =C2=A0 =C2=A0My understanding is that there's a cookie data ~<recurs= ive>~ property flag you can use. I assumed that's what this was for = but it seems to not affect things (I've tried both with and without the= angle braces, but the regex seems to imply braces which is odd)
*** Thi= s should show 3/5 [1/2]
=C2=A0 =C2=A0 :PROPERTIES:
=C2=A0 =C2=A0 :COO= KIE_DATA: <recursive>
=C2=A0 =C2=A0 :END:
=C2=A0 =C2=A0 - [X] D= one
=C2=A0 =C2=A0 - [ ] Not Done
*** Nesting level 1
=C2=A0 =C2=A0= - [ ] Not Done
=C2=A0 =C2=A0 - [X] Done
*** Nesting level 2
**** = Nesting level 2.1
=C2=A0 =C2=A0 =C2=A0- [X] Done
--000000000000cdc3bb05c7caeac8--