From a4df1c1634d68edaaa189bfb9b341621bbba80ce Mon Sep 17 00:00:00 2001 From: Daneel Date: Tue, 24 Feb 2026 15:27:09 +0100 Subject: [PATCH] fix(snippets): add UNNUMBERED notoc to sub-headings in adr/meeting/weekly Sub-headings (Problem statement, Decision, etc.) should not appear in TOC when using #+OPTIONS: toc:N. Main template heading remains in TOC. --- snippets/org-mode/adr | 18 ++++++++++++++++++ snippets/org-mode/meeting | 9 +++++++++ snippets/org-mode/weekly | 12 ++++++++++++ 3 files changed, 39 insertions(+) diff --git a/snippets/org-mode/adr b/snippets/org-mode/adr index 2a23d63..bdea0b9 100644 --- a/snippets/org-mode/adr +++ b/snippets/org-mode/adr @@ -10,14 +10,32 @@ | *Date* | `(format-time-string "%Y-%m-%d")` | `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Problem statement +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Decision +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Alternatives +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Justification +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Implications +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Derived requirements +:PROPERTIES: +:UNNUMBERED: notoc +:END: $0 diff --git a/snippets/org-mode/meeting b/snippets/org-mode/meeting index 2528722..2ee27cf 100644 --- a/snippets/org-mode/meeting +++ b/snippets/org-mode/meeting @@ -9,8 +9,17 @@ | *Attendees* | ${2:names} | `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Notes +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Actions +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Next steps +:PROPERTIES: +:UNNUMBERED: notoc +:END: $0 diff --git a/snippets/org-mode/weekly b/snippets/org-mode/weekly index a662924..0f11a26 100644 --- a/snippets/org-mode/weekly +++ b/snippets/org-mode/weekly @@ -5,10 +5,22 @@ `(make-string (1+ (or (org-current-level) 0)) ?*)` Weekly Review — `(format-time-string "W%V %Y")` `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Done this week +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` In progress +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Blocked +:PROPERTIES: +:UNNUMBERED: notoc +:END: `(make-string (+ 2 (or (org-current-level) 0)) ?*)` Next week focus +:PROPERTIES: +:UNNUMBERED: notoc +:END: $0