From mboxrd@z Thu Jan 1 00:00:00 1970 From: Bernt Hansen Subject: Re: Something like 'org-clock-in-at-time'? Date: Sat, 09 Apr 2011 14:03:39 -0400 Message-ID: <87wrj3b8uc.fsf@norang.ca> References: Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable Return-path: Received: from [140.186.70.92] (port=58674 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Q8cVj-0003Kt-EE for emacs-orgmode@gnu.org; Sat, 09 Apr 2011 14:03:52 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Q8cVi-00017u-FP for emacs-orgmode@gnu.org; Sat, 09 Apr 2011 14:03:51 -0400 Received: from mho-02-ewr.mailhop.org ([204.13.248.72]:23673) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Q8cVi-00016V-Cy for emacs-orgmode@gnu.org; Sat, 09 Apr 2011 14:03:50 -0400 In-Reply-To: (John Hendy's message of "Sat, 9 Apr 2011 12:24:33 -0500") List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: John Hendy Cc: emacs-orgmode John Hendy writes: > On Sat, Mar 12, 2011 at 2:48 PM, John Hendy wrote: >> Could someone fill me in on your process for clocking in things after >> the fact? I've been trying to get into to clocking, but, especially at >> home, I don't return to my computer in between every different thing. >> Instead, I stop at it when I get a pause and try to fill in what I've >> been doing. So far, this has been something akin to: >> >> - create a new sub-headline and call it what I was doing >> - C-c C-c to tag it >> - C-c C-x C-i followed by C-c C-x C-o to create a clocked time stamps >> - Manually edit the times >> - C-c C-c to update the count >> >> >> This gets quite tedious when adding several things. I have to expand >> the logbook, and then fiddle with the times. >> Could there be (or is there already) a function that might act like >> the date selection screen for clocking? I looked at the completion >> list for org-clock-* commands and none of them looked promising. I >> could envision something like: >> >> - M-x org-clock-in-at-time >> - Minibuffer presents date selection, you select date just like for time= stamps >> - Minibuffer requests time in form HH:MM and you can type it in >> >> Same type of function for clocking out. This would *vastly* simplify >> how I end up clocking. >> >> I'm absolutely open to suggestions from others on how you deal with >> this. Perhaps this is an opportunity to learn about how the *experts* >> access=C2=A0some functionality I'm currently unaware of! > Just wanted to bump this as it's almost been a month. Even feedback as > to whether or not this is feasible would be appreciated. If it's not, > or it is but just won't happen, I'll resolve to keep clocking in, > immediately clocking out, and then futzing with the times by hand. Hi John, I don't have a workflow for this but I just did a little experiment which may be easier than what you are currently doing. It's now 1:54PM and I wanted to try to create a few (fake) tasks and generate clocking data for the following: - task 1 for 8:00 - 8:30 - task 2 for 8:30 - 8:45 - task 3 for 8:45 - 11:00 - task 4 for 11:00 - 13:00 - task 5 for 13:00 - now (current task) so I did the following: 1) Stop the clock 2) Create the tasks --8<---------------cut here---------------start------------->8--- * TODO Experiment with clocking in old data [2011-04-09 Sat 13:47] ** TODO Old task for 8am - 8:30 [2011-04-09 Sat 13:48] ** TODO 8:30-8:45 [2011-04-09 Sat 13:48] ** TODO 8:45-11:00 [2011-04-09 Sat 13:48] ** TODO 11:00-1PM [2011-04-09 Sat 13:48] ** TODO current task [2011-04-09 Sat 13:48] --8<---------------cut here---------------end--------------->8--- 3) Clock in the first task (Old task for 8am - 8:30) 4) Manually move the clock back to 8AM with S-up and S-down on the clock line CLOCK: [2011-04-09 Sat 13:52]CLOCK: [2011-04-09 Sat 08:00] (or just edit it) 5) M-x org-resolve-clocks (I have this bound to M-F11) 6) enter K to keep 30 minutes and stop the clock 7) Go to the next task and clock that in 8) answer Yes to start the clock from the last time 9) M-F11 (M-x org-resolve-clocks) again and enter K to keep 15 minutes for the 8:30-8:45 task 10) Lather, rinse, and repeat 7-9 for all but the last task 11) Then clock in the last task and continue with whatever you are doing. This results in something like this --8<---------------cut here---------------start------------->8--- * DONE Experiment with clocking in old data CLOSED: [2011-04-09 Sat 13:51] :LOGBOOK: - State "DONE" from "STARTED" [2011-04-09 Sat 13:51] :END: [2011-04-09 Sat 13:47] [[gnus:nntp%2Bnews.gmane.org:gmane.emacs.orgmode][gnus:nntp+news.gmane.org:= gmane.emacs.orgmode]] ** DONE Old task for 8am - 8:30 CLOSED: [2011-04-09 Sat 13:50] :LOGBOOK: - State "DONE" from "STARTED" [2011-04-09 Sat 13:50] CLOCK: [2011-04-09 Sat 08:00]--[2011-04-09 Sat 08:30] =3D> 0:30 :END: [2011-04-09 Sat 13:48] ** DONE 8:30-8:45 CLOSED: [2011-04-09 Sat 13:50] :LOGBOOK: - State "DONE" from "STARTED" [2011-04-09 Sat 13:50] CLOCK: [2011-04-09 Sat 08:30]--[2011-04-09 Sat 08:45] =3D> 0:15 :END: [2011-04-09 Sat 13:48] ** DONE 8:45-11:00 CLOSED: [2011-04-09 Sat 13:50] :LOGBOOK: - State "DONE" from "STARTED" [2011-04-09 Sat 13:50] CLOCK: [2011-04-09 Sat 08:45]--[2011-04-09 Sat 11:00] =3D> 2:15 :END: [2011-04-09 Sat 13:48] ** DONE 11:00-1PM CLOSED: [2011-04-09 Sat 13:50] :LOGBOOK: - State "DONE" from "STARTED" [2011-04-09 Sat 13:50] CLOCK: [2011-04-09 Sat 11:00]--[2011-04-09 Sat 13:00] =3D> 2:00 :END: [2011-04-09 Sat 13:48] ** DONE current task CLOSED: [2011-04-09 Sat 13:50] :LOGBOOK: - State "DONE" from "STARTED" [2011-04-09 Sat 13:50] CLOCK: [2011-04-09 Sat 13:00]--[2011-04-09 Sat 13:50] =3D> 0:50 :END: [2011-04-09 Sat 13:48] --8<---------------cut here---------------end--------------->8--- Does that help? Regards, Bernt