emacs-orgmode
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[O] Trying to separate clocked time /ranges/ from scheduled times in a c


From: Brady Trainor
Subject: [O] Trying to separate clocked time /ranges/ from scheduled times in a clean-ish view.
Date: Wed, 23 Apr 2014 17:47:05 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:24.0) Gecko/20100101 Thunderbird/24.4.0



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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]