9

如何获取 org-mode DONE 统计信息以过滤非待办事项标题并更新统计信息 cookie?

我有一个 org-mode 文件,如下所示:

* <2013-03-06 Wed> [0%]
** work
*** training
**** TODO email Anne
**** DONE call Raymond
*** reports
**** DONE collect research
**** DONE compile data
*** white papers
**** TODO collect client files
*** sales
**** DONE email Wendy                         
** housekeeping
*** DONE go to post office! 

父标题不是 TODO 任务;它们是概念类别。

我希望 org-mode 在我将任务标记为 DONE 时计算完成百分比统计信息。

我尝试设置org-hierarchical-todo-statisticst没有帮助。

4

2 回答 2

10

您已将变量向后设置,请尝试:

(setq org-hierarchical-todo-statistics nil)

如果您只希望它对某些(单个)树产生影响,请使用该属性:COOKIE_DATA: recursive

从变量定义:

org-hierarchical-todo-statistics is a variable defined in `org.el'.
Its value is nil
Original value was t

Documentation:
Non-nil means TODO statistics covers just direct children.
When nil, all entries in the subtree are considered.
This has only an effect if `org-provide-todo-statistics' is set.
To set this to nil for only a single subtree, use a COOKIE_DATA
property and include the word "recursive" into the value.
于 2013-03-07T14:45:09.143 回答
3

做一个

(setq org-hierarchical-todo-statistics nil)

为我工作!您还可以将 COOKIE_DATA 属性设置为递归:

* <2013-03-06 Wed> [71%]
  :PROPERTIES:
  :COOKIE_DATA: recursive
  :END:
** work
*** training
**** TODO email Anne
**** DONE call Raymond
*** reports
**** DONE collect research
**** DONE compile data
*** white papers
**** TODO collect client files
*** sales
**** DONE email Wendy
** housekeeping
*** DONE go to post office!
于 2013-03-07T14:41:37.053 回答