How to untick checkboxes in org-mode for the next cyclic/repetitive task

浪尽此生 提交于 2020-06-24 07:20:45

问题


With cyclic or repetitive tasks in org-mode, inside this task, if there are several checkboxes and all of them marked as ticked, after the general task is masked as DONE, the checkboxes for the next cycle period stills appear as ticked and it should be unticked. e.g.:

  • TODO Cyclic monthly home [0/5] SCHEDULED: <2013-11-30 Sat +1m>
    • [ ] pay sauna
    • [ ] pay electricity
    • [ ] pay renting
    • [ ] pay internet
    • [ ] pay union

Once I ticked all of them and put it as done, this is what I can see:

  • WIP Cyclic monthly home [5/5] SCHEDULED: <2014-01-30 Thu +1m>
  • State "DONE" from "WIP" [2013-11-06 Wed 20:49] :PROPERTIES: :LAST_REPEAT: [2013-11-06 Wed 20:49] :END:
    • [X] pay sauna <--- this should be unticked
    • [X] pay electricity <-- this should be unticked
    • [X] pay renting <-- this should be unticked
    • [X] pay internet <-- this should be unticked
    • [X] pay union <-- this should be unticked

Tested in versions:

  • Emacs version: *GNU Emacs 24.3.1 (x86_64-unknown-linux-gnu, X toolkit, Xaw3d scroll bars) of 2013-08-30 on apocalipsis*

  • Org-mode version: *Org-mode version 7.9.3f (release_7.9.3f-17-g7524ef @ /usr/local/share/emacs/24.3/lisp/org/)*

Update: solved following these instructions:

1. In the emacs configuration file .emacs include:

(add-to-list 'load-path (expand-file-name "~/path_to_file_org-checklist.el/"))

(require 'org-checklist)

Note: If you do not have the file, you can download from here

2. Inside the file mytasks.org after the TODO task, but before the checkboxes include those lines:

:PROPERTIES:

:RESET_CHECK_BOXES: t

:END:

3. Verify that it works

Just close the task with C-c C-t and you will see the checkboxes unticked.


回答1:


If I understand you correctly, the situation is: you have a repeating task with subitems as checkboxes. When the task is completed, all the checkboxes on the subitems should be cleared - so the task can be done at next cyclic time.

  • Set property RESET_CHECK_BOXES on the task to t
  • make sure org-checklist is one of the loaded modules (via variable org-modules)



回答2:


You can untick a range of checkboxes with C-c C-x C-b on selected region. This calls the org-toggle-checkbox command.



来源:https://stackoverflow.com/questions/20164918/how-to-untick-checkboxes-in-org-mode-for-the-next-cyclic-repetitive-task

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!