[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [O] About headlines, checkboxes and heritage
From: |
Nicolas Goaziou |
Subject: |
Re: [O] About headlines, checkboxes and heritage |
Date: |
Fri, 06 Jan 2012 14:40:12 +0100 |
Hello,
Ab Cd <address@hidden> writes:
> Please consider the following file :
>
> * TODO working
> ** TODO 1st part of the work
> CLOCK: [2012-01-05 jeu. 17:18]
>
> ** TODO second part of the work [0/3]
> - [ ] Task 1
> - [ ] Subtask 1
> - [ ] Subtask 2
> - [ ] Subtask 3
> - [ ] Task 2
> - [ ] Task 3
>
> But why shoudln't a TODO headline containing only checkbox that are
> all completed ([3/3] in this case) be switched to done?
Because lists and headlines are mostly unrelated. There's no particular
reason that completing all tasks from the list should end the second
part of the work. There might be some things left to be done, like
writing a report... many things that Org can't guess. It's up to the
user to tell when it is appropriate to close the task.
Now, if the automatic closing of tasks fits your needs, you can make it
possible with an appropriate value for `org-checkbox-statistics-hook'.
> Also, why can't I toggle "Task 1" ? Let's assume I was away from my
> computer when completing some or all of the subtasks. I would really
> like to check Task 1 and have all the Subtasks checked automatically.
Mark region between "Task 1" and Subtask 3, then use C-c C-x C-b
> One last thing. I also think I would be nice that, if I switch "second
> part of the work" to DONE, the counter would be set to [3/3] and all
> the tasks and subtasks be checked as done.
You want to treat lists as lesser headlines, which they are not. At
least by default.
Though, you can use `org-after-todo-state-change-hook' to call, each
time a state change to a "done"-like keyword, `org-toggle-checkbox' on
the headline (provided the first check-box in the section is unchecked).
Regards,
--
Nicolas Goaziou
- [O] (no subject), Ab Cd, 2012/01/05
- [O] (no subject), Tom Regner, 2012/01/23
- Re: [O] (no subject), Tom Regner, 2012/01/23
- Re: [O] (no subject), Eric Schulte, 2012/01/23
- Re: [O] (no subject), Tom Regner, 2012/01/23
- Re: [O] string joining accumulated noweb references Was: (no subject), Eric Schulte, 2012/01/23
- Re: [O] string joining accumulated noweb references, Tom Regner, 2012/01/23
- Re: [O] string joining accumulated noweb references, Achim Gratz, 2012/01/24
- Re: [O] string joining accumulated noweb references, Eric Schulte, 2012/01/24