Search code examples
emacsorg-modetodo

Is it possible to get org-mode to show breadcrumbs in agenda todo list?


In Emacs, I have a set of TODOs in the following format

* H1
** H2
*** H3
**** TODO X

When I look at the agenda-todo view, it shows up only as TODO x. Is there any way to get the agenda view to display it as H1/H2/H3/TODO X ?


Solution

  • I found this solution from here

    (setq org-agenda-prefix-format '((agenda . " %i %-12:c%?-12t% s")
             (timeline . "  % s")
             (todo .
                   " %i %-12:c %(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \" ]\") ")
             (tags .
                   " %i %-12:c %(concat \"[ \"(org-format-outline-path (org-get-outline-path)) \" ]\") ")
             (search . " %i %-12:c"))
          )
    

    This shows the breadcrumbs in the agenda todo view.