From 17954dc4b064d7fb09719222045d31feae8aa923 Mon Sep 17 00:00:00 2001 From: Adam Porter Date: Sat, 29 Jun 2024 19:18:52 -0500 Subject: [PATCH] Change: (:auto-outline-path) Put top-level headings in a group Fixes #258. Suggested-by: Gulshan Singh --- README.org | 3 +++ org-super-agenda.el | 4 +++- org-super-agenda.info | 30 ++++++++++++++++++------------ 3 files changed, 24 insertions(+), 13 deletions(-) diff --git a/README.org b/README.org index ac2495e..21944ee 100644 --- a/README.org +++ b/README.org @@ -244,6 +244,9 @@ As explained in the usage instructions and shown in the example, items are colle + Selector ~:ancestor-with-todo~, which groups items by their ancestor having a certain to-do keyword (up to a ~:limit~ number of hops, or with ~:nearestp~, the nearest one). (Useful, for example, to group items by their parent or ancestor project.) + Option ~org-super-agenda-show-message~ allows disabling of the message shown when the mode is enabled. (Thanks to [[https://github.com/hpfr][Liam Hupfer]].) +*Changes* ++ Selector ~:auto-outline-path~ puts top-level headings in a group named "Top-level headings". ([[https://github.com/alphapapa/org-super-agenda/issues/258][#258]]. Thanks to [[https://github.com/gsingh93][Gulshan Singh]] for suggesting.) + ** 1.3 *Additions* diff --git a/org-super-agenda.el b/org-super-agenda.el index d87713d..6cffeae 100644 --- a/org-super-agenda.el +++ b/org-super-agenda.el @@ -1093,7 +1093,9 @@ key and as the header for its group." (org-super-agenda--def-auto-group outline-path "their outline paths" :key-form (org-super-agenda--when-with-marker-buffer (org-super-agenda--get-marker item) - (s-join "/" (org-get-outline-path)))) + (if-let ((outline-path (org-get-outline-path))) + (s-join "/" outline-path) + "Top-level headings"))) (org-super-agenda--def-auto-group parent "their parent heading" :key-form (org-super-agenda--when-with-marker-buffer (org-super-agenda--get-marker item) diff --git a/org-super-agenda.info b/org-super-agenda.info index feda904..8c753eb 100644 --- a/org-super-agenda.info +++ b/org-super-agenda.info @@ -577,6 +577,12 @@ File: README.info, Node: 14-pre, Next: 13, Up: Changelog message shown when the mode is enabled. (Thanks to Liam Hupfer (https://github.com/hpfr).) + *Changes* + • Selector ‘:auto-outline-path’ puts top-level headings in a group + named "Top-level headings". (#258 + (https://github.com/alphapapa/org-super-agenda/issues/258). Thanks + to Gulshan Singh (https://github.com/gsingh93) for suggesting.) +  File: README.info, Node: 13, Next: 12, Prev: 14-pre, Up: Changelog @@ -834,18 +840,18 @@ Node: Why are some items not displayed even though I used group selectors for th Node: Why did a group disappear when I moved it to the end of the list?21178 Node: Changelog21759 Node: 14-pre21997 -Node: 1322557 -Node: 1224120 -Node: 11126790 -Node: 1126965 -Node: 10328549 -Node: 10228760 -Node: 10128894 -Node: 10029232 -Node: Development29337 -Node: Bugs29739 -Node: Tests30433 -Node: Credits30770 +Node: 1322829 +Node: 1224392 +Node: 11127062 +Node: 1127237 +Node: 10328821 +Node: 10229032 +Node: 10129166 +Node: 10029504 +Node: Development29609 +Node: Bugs30011 +Node: Tests30705 +Node: Credits31042  End Tag Table