3

Is there a way to show the tasks in the agenda list grouped by category? I mean in the task list view (when pressing C-c a t) rather than the week-agenda.

2 Answers 2

3

org-super-agenda can do this kind of grouping. Just add (:auto-category t) to the org-super-agenda-groups list.

Something like

(add-to-list 'org-agenda-custom-commands
    '("t" "All TODOs groups by category" alltodo ""
        ((org-super-agenda-groups '((:auto-category t))))
    ))

Will generate a list of TODOs, grouped into sections by category.

2
  • As far as I can see, org-super-agenda groups the entries in the week-agenda rather than the task list. Is this not the case?
    – Tohiko
    Mar 21, 2019 at 11:01
  • 1
    It works the same with both types. I use it with the alltodo agenda, mostly because it's faster to use its :discard than org-agenda-skip-function
    – erikstokes
    Mar 21, 2019 at 23:24
0

To set it for the default todo agenda you can do:

(setq org-agenda-sorting-strategy
      (cons '(todo category-up priority-down) org-agenda-sorting-strategy))

Otherwise, define a custom agenda:

(setq org-agenda-custom-commands      
      '(("c" "List TODOs grouped by category" alltodo ""
         ((org-agenda-sorting-strategy '(category-up priority-down))))))
2
  • Thanks. I know how to sort by category, but I wanted to group by categories like org-super-agenda does.
    – Tohiko
    Mar 21, 2019 at 11:00
  • Ok, I was just suggesting a poor's man grouping.
    – memeplex
    Mar 21, 2019 at 16:39

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.