Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 925
Borja Tarraso Avatar asked Nov 23 '13 16:11

Borja Tarraso


2 Answers

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)
like image 157
Jeffrey DeLeo Avatar answered Oct 04 '22 16:10

Jeffrey DeLeo


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

like image 34
abo-abo Avatar answered Oct 04 '22 18:10

abo-abo