是否有可能获得org-mode在议程待办事项列表中显示面包屑?

rah*_*hul 7 emacs org-mode todo

在Emacs中,我有一组TODO,格式如下

* H1
** H2
*** H3
**** TODO X
Run Code Online (Sandbox Code Playgroud)

当我查看议程 - 待办事项视图时,它只显示为TODO x.有没有办法让议程视图显示为H1/H2/H3/TODO X

rah*_*hul 8

我从这里找到了这个解决方案

(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"))
      )
Run Code Online (Sandbox Code Playgroud)

这显示了议程视图中的面包屑.

  • IMO 你应该直接使用 `%b` 来显示面包屑。 (2认同)

Hau*_*eld 5

您应该能够%b在格式字符串中使用来显示面包屑。

  • 您可以通过“org-agenda-breadcrumbs-separator”变量设置与“%b”一起使用的自定义分隔符 (2认同)