Skip to content

Commit

Permalink
Change: (:auto-outline-path) Put top-level headings in a group
Browse files Browse the repository at this point in the history
Fixes #258.

Suggested-by: Gulshan Singh <https://github.com/gsingh93>
  • Loading branch information
alphapapa committed Jun 30, 2024
1 parent 283881b commit 17954dc
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 13 deletions.
3 changes: 3 additions & 0 deletions README.org
Original file line number Diff line number Diff line change
Expand Up @@ -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*
Expand Down
4 changes: 3 additions & 1 deletion org-super-agenda.el
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
30 changes: 18 additions & 12 deletions org-super-agenda.info
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down Expand Up @@ -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

Expand Down

0 comments on commit 17954dc

Please sign in to comment.