【问题标题】:Is it possible to get org-mode to show breadcrumbs in agenda todo list?是否可以让 org-mode 在议程待办事项列表中显示面包屑?
【发布时间】:2014-04-06 01:03:43
【问题描述】:

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

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

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

【问题讨论】:

  • 指针下的项目的面包屑出现在迷你缓冲区中。不是你要求的,但也许有帮助。
  • 谢谢,它很有用,但我真的很想一次看到所有待处理任务的面包屑。
  • 这里是几年前邮件列表中相同功能请求的链接——它包含一些关于如何实现此功能的想法(带有代码):comments.gmane.org/gmane.emacs.orgmode/60873
  • 谢谢,但似乎正在讨论的功能是 Juancho 提到的(一次显示一个面包屑)。

标签: emacs org-mode todo


【解决方案1】:

我从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"))
      )

这会在议程待办事项视图中显示面包屑。

【讨论】:

  • IMO 你应该直接使用%b 来显示面包屑。
【解决方案2】:

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

【讨论】:

  • 是的,您可以使用%b,它使用-> 作为分隔符来呈现面包屑。另一方面,(org-format-outline-path (org-get-outline-path)) 使用/ 作为分隔符来呈现它。我个人觉得后者更具可读性,因此更喜欢@rahul 解决方案。不过完全是口味问题……
  • 您可以通过org-agenda-breadcrumbs-separator 变量设置与%b 一起使用的自定义分隔符
猜你喜欢
  • 2023-04-10
  • 2017-07-04
  • 1970-01-01
  • 2023-03-25
  • 2011-04-10
  • 1970-01-01
  • 1970-01-01
  • 2014-03-30
  • 2021-08-07
相关资源
最近更新 更多