Mark Scala <marksc...@gmail.com> writes: > Hi, > > I've been using capture for, among other things, capturing > interruptions to clocked tasks. For this, I use something like the > following template: > > ("i" "interruption" entry (file "refile.org") "A TEMPLATE HERE" > :clock-in t :clock-resume t) > > One thing that has been bothering me is that there are really two > types of interruption that deserve different treatment. Sometimes > the interrupting task is completed by the time I file it with C-c > C-c. Other times it is not. But both types are filed with the todo > keyword STARTED. For those (and only those) interruptions that are > finished by the time I file them, I'd like them to have the keyword > DONE automatically. Has anyone encountered this case and found a > solution?
Hi Mark, Just add one step to mark the task DONE before you file it away. C-c C-t d (mark DONE) C-c C-c (file it and stop the clock) How is org-mode supposed to divine that this task you are capturing is DONE when you file it but another one isn't? You'll have to indicate somehow how you differentiate between these capture tasks. If you can do that programmatically maybe you can add a capture hook which marks the task done when you file it. Regards, Bernt