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

巧了我就是萌 提交于 2019-11-30 15:18:38

问题


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 ?


回答1:


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.




回答2:


You should be able to use %b in the format string to show the breadcrumb.



来源:https://stackoverflow.com/questions/22888785/is-it-possible-to-get-org-mode-to-show-breadcrumbs-in-agenda-todo-list

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!