组织模式:自定义议程命令TODO状态更改日志,不重复相同的TODO

时间:2012-10-25 10:09:50

标签: emacs org-mode

我在'DONE'状态更改时使用'note和timestamp'。在我的自定义议程命令中,我定义了我想要查看状态更改日志。但似乎我仍然看到原来重复的TODO。我想只看到状态更改日志。

我尝试了两种不同的配置。第一个不提供状态更改,第二个提供状态更改日志但也重复。

如何修改议程以仅显示状态更改日志?


'company.org'中的TODO条目:

* Agenda
** TODO Acronis : Backup Check                                                                                                    :DAILY:
SCHEDULED: 
:LOGBOOK:
- State "DONE"       from "TODO"       [2012-10-25 Thu 10:31] \\
  Reverted 'proud' back to central storage. Asked about RAM upgrade. Scheduled for Monday.
:END:
:PROPERTIES:
:LAST_REPEAT: [2012-10-25 Thu 10:31]
:END:

TODO状态变化序列:

;; '!' (for a timestamp) or '@' (for a note with timestamp)
(setq org-todo-keywords
       '((sequence "TODO(t)" "PROJ(p)" "APPT(a)" "|" "DONE(d@)")))

自定义议程命令:

("c" agenda "Company 60"
     (
      (org-agenda-files '("~/shoebox/read/org/company.org"))
      (org-agenda-ndays 60)
      (org-deadline-warning-days 7)
      (org-agenda-sorting-strategy '(time-up todo-state-up priority-down))
      (org-agenda-time-grid nil)
      (org-agenda-repeating-timestamp-show-all nil)
      (org-agenda-show-log t)
      (org-agenda-log-mode-items '(state))
      (org-agenda-show-all-dates nil) ;; only show days with something
      (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":DAILY:"))
      ))

制作:

60 days-agenda (W43-W51):
Thursday   25 October 2012
  company:    10:00...... Scheduled:  TODO Acronis : Backup Check        :DAILY:

其中:

    ("c" "Company 60"
     ((agenda ""))
     (
      (org-agenda-files '("~/shoebox/read/org/company.org"))
      (org-agenda-ndays 60)
      (org-deadline-warning-days 7)
      (org-agenda-sorting-strategy '(time-up todo-state-up priority-down))
      (org-agenda-time-grid nil)
      (org-agenda-repeating-timestamp-show-all nil)
      (org-agenda-show-log t)
      (org-agenda-log-mode-items '(state))
      (org-agenda-show-all-dates nil) ;; only show days with something
      (org-agenda-skip-function '(org-agenda-skip-entry-if 'notregexp ":DAILY:"))
      ))

产地:

60 days-agenda (W43-W51):
Thursday   25 October 2012
  Company:    10:00...... Scheduled:  TODO Acronis : Backup Check        :DAILY:
  Company:    10:31...... State:     (DONE) TODO Acronis : Backup Check - Reverted 'proud' back to central storage. Asked about RAM upgrade. Scheduled for Monday. :DAILY:

0 个答案:

没有答案