如何通过非待办事项标题过滤Emacs组织模式完成统计?

时间:2013-03-07 09:03:05

标签: emacs org-mode

如何获取org-mode DONE统计信息以过滤非todo标题并更新统计信息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时计算%done统计数据。

我尝试将org-hierarchical-todo-statistics设置为t,但这没有帮助。

2 个答案:

答案 0 :(得分:8)

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

(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.

答案 1 :(得分: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!