From mboxrd@z Thu Jan 1 00:00:00 1970 From: Brady Trainor Subject: Trying to separate clocked time /ranges/ from scheduled times in a clean-ish view. Date: Wed, 23 Apr 2014 17:47:05 -0700 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:36887) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd7p0-0004mu-Nd for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 20:47:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Wd7os-00064k-Qb for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 20:47:26 -0400 Received: from plane.gmane.org ([80.91.229.3]:54171) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Wd7os-00064d-Ga for emacs-orgmode@gnu.org; Wed, 23 Apr 2014 20:47:18 -0400 Received: from list by plane.gmane.org with local (Exim 4.69) (envelope-from ) id 1Wd7or-0005Gt-AR for emacs-orgmode@gnu.org; Thu, 24 Apr 2014 02:47:17 +0200 Received: from 50.245.130.59 ([50.245.130.59]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Apr 2014 02:47:17 +0200 Received: from algebrat by 50.245.130.59 with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Thu, 24 Apr 2014 02:47:17 +0200 List-Id: "General discussions about Org-mode." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org Sender: emacs-orgmode-bounces+geo-emacs-orgmode=m.gmane.org@gnu.org To: emacs-orgmode@gnu.org I can't see how to get a clean view of clocked time ranges. Not just the length of time, but the actual start and end times. I would like to share my attempts to give you an idea. If I include (org-agenda-start-with-log-mode '(closed clock state)) in my agenda block, then I can see them, but unfortunately I am clocking on items I've scheduled for myself, so they mix in and it is hard to read quickly. That is, I have #+BEGIN_SRC ** example *** circus act :routine: **** backflips CLOCK: [2014-04-23 Wed 07:45]--[2014-04-23 Wed 07:48] => 0:03 SCHEDULED: <2014-04-23 Wed 07:45-07:50> :PROPERTIES: :Effort: 0:05 :END: **** somersaults SCHEDULED: <2014-04-23 Wed 07:50-08:00> CLOCK: [2014-04-23 Wed 07:48]--[2014-04-23 Wed 07:52] => 0:04 :PROPERTIES: :Effort: 0:10 :END: **** front flips :PROPERTIES: :Effort: 0:10 :END: *** feed elephant :routine: SCHEDULED: <2014-04-23 Wed 21:10-21:30> :PROPERTIES: :Effort: 0:20 :END: *** tell fortune :routine: SCHEDULED: <2014-04-23 Wed 08:00-08:20> CLOCK: [2014-04-23 Wed 07:52]--[2014-04-23 Wed 08:10] => 0:18 :PROPERTIES: :Effort: 0:20 :END: #+END_SRC In an `agenda' block, I have tried to filter the scheduled lines out, and keep the clock lines, but filters seem to work before deciding to include the clocking, so the pair, scheduled and clocked will vanish together. (If I could get a view of just clock time ranges, I might use a sticky buffer to see one agenda block with scheduled time ranges, and another agenda block with clocked time ranges.) I tried using a clock report table, but I can't see how to get the actual clocked time, instead of the timestamp range. Via (org-agenda-start-with-clockreport-mode t) I've looked at column view as a possibility, but again, the clock time does not seem to be available. I tried to use the `search' block, but did not think of a way to display only clock times there. Here are the results of my best tries at an agenda view. (I found it a little awkward to compare clocked times to scheduled times as they are mixed in here.) _________________ / ________________ / Day-agenda (W17): Wednesday 23 April 2014 agendatest: 7:45- 7:48 Clocked: (0:03) backflips :routine:: agendatest: 7:45- 7:50 Scheduled: backflips :routine:: agendatest: 7:48- 7:52 Clocked: (0:04) somersaults :routine:: agendatest: 7:50- 8:00 Scheduled: somersaults :routine:: agendatest: 7:52- 8:10 Clocked: (0:18) tell fortune :routine: agendatest: 8:00- 8:20 Scheduled: tell fortune :routine: 8:00...... ---------------- 10:00...... ---------------- 12:00...... ---------------- 14:00...... ---------------- 16:00...... ---------------- 17:15...... now - - - - - - - - - - - - - - - - - - - - - 18:00...... ---------------- 20:00...... ---------------- agendatest: 21:10-21:30 Scheduled: feed elephant :routine: | Timestamp | Effort | Headline | Time | |----------------------------+--------+-----------------+--------+------ | ALL | | *Total time* | *0:25* | |----------------------------+--------+-----------------+--------+------ | | | *File time* | *0:25* | | | | circus act | 0:07 | | 2014-04-23 Wed 07:45-07:50 | 0:05 | \__ backflips | | 0:03 | 2014-04-23 Wed 07:50-08:00 | 0:10 | \__ somersaults | | 0:04 | 2014-04-23 Wed 08:00-08:20 | 0:20 | tell fortune | 0:18 | ===================================================================================================================================================== Search words: CLOCK agendatest: backflips :routine:: agendatest: somersaults :routine:: agendatest: tell fortune :routine: \________________ \________________ Finally, here is my custom-command that I have been working on: #+BEGIN_SRC emacs-lisp (org-add-agenda-custom-command '("r" "routine" ((agenda "" ( (org-clocktable-defaults '( :timestamp t :properties ("Effort") :indent t )) ) ) (search "CLOCK") ) ( (org-agenda-files '("/e/org/agendatest.org")) (org-agenda-span 'day) (org-agenda-start-with-clockreport-mode t) (org-agenda-start-with-log-mode '(closed clock state)) (org-agenda-tag-filter-preset '("+routine")) ) )) #+END_SRC To give a visual of what I am trying to do, Day-agenda (W17): Wednesday 23 April 2014 agendatest: 7:45- 7:48 Clocked: (0:03) backflips :routine:: agendatest: 7:48- 7:52 Clocked: (0:04) somersaults :routine:: agendatest: 7:52- 8:10 Clocked: (0:18) tell fortune :routine: 8:00...... ---------------- 10:00...... ---------------- 12:00...... ---------------- 14:00...... ---------------- 16:00...... ---------------- 17:15...... now - - - - - - - - - - - - - - - - - - - - - 18:00...... ---------------- 20:00...... ---------------- which would be nice to compare against: Day-agenda (W17): Wednesday 23 April 2014 agendatest: 7:45- 7:50 Scheduled: backflips :routine:: agendatest: 7:50- 8:00 Scheduled: somersaults :routine:: agendatest: 8:00- 8:20 Scheduled: tell fortune :routine: 8:00...... ---------------- 10:00...... ---------------- 12:00...... ---------------- 14:00...... ---------------- 16:00...... ---------------- 17:15...... now - - - - - - - - - - - - - - - - - - - - - 18:00...... ---------------- 20:00...... ---------------- agendatest: 21:10-21:30 Scheduled: feed elephant :routine: Maybe if I just added a face to the clocked items? Any ideas and alternative strategies are appreciated. My system is not at all fixed in place. Thank you, Brady