org-hyperscheduler icon indicating copy to clipboard operation
org-hyperscheduler copied to clipboard

Show clocked time

Open wuqui opened this issue 2 years ago • 9 comments

Could you also display clocked time? That would be nice.

Cool package, thanks for your work :)

wuqui avatar May 16 '22 14:05 wuqui

That's an interesting idea -- where would you like to see the clocked time?

👍

dmitrym0 avatar May 16 '22 15:05 dmitrym0

In all calendar views. Basically the same way as in org-agenda, which doesn't only contain information on scheduled time blocks, but also the time one has tracked on past tasks.

wuqui avatar May 16 '22 15:05 wuqui

Well, in the calendar the block designates the originally scheduled time.. I guess I could display clocked time as part of the event label?

dmitrym0 avatar May 16 '22 18:05 dmitrym0

Well, I was imagining clocked tasks to get time blocks as well. So if you clocked emails from 09:00 till 11:00 and it's 12:00 now, the calendar would show a 2-hour block for this past activity.

wuqui avatar May 17 '22 07:05 wuqui

Ahh gotcha that makes sense. It's more of a logging activity then. This doesn't really fit into my workflow, but if you're interested in creating a PR, I would be happy to accept it.

It should be fairly straightforward:

  1. modify the agenda filter to return clocked tasks as well
  2. on the calendar side, when processing inbound tasks, create a new calendar category (to visually separate clocked tasks from scheduled tasks) and maybe set tasks to read only so they cannot be modified in the calendar.

dmitrym0 avatar May 17 '22 14:05 dmitrym0

Unfortunately, I don't have the skills to make this happen.

Besides, I have to say that I deactivated this package since I didn't like how it cluttered my files with all those tags and ID properties. I'd be happy to come back to should there be a new version with a different implementation. Could it use heading properties instead and scan all org-agenda-files, for example? Anyway, thanks again.

wuqui avatar May 18 '22 07:05 wuqui

Unfortunately, I don't have the skills to make this happen.

You're an Emacs user so I beg to differ 😄

Besides, I have to say that I deactivated this package since I didn't like how it cluttered my files with all those tags and ID properties. I'd be happy to come back to should there be a new version with a different implementation. Could it use heading properties instead and scan all org-agenda-files, for example? Anyway, thanks again.

Yeah, I agree that it's not the best; there's #8 to track the tags, it's in the queue.

In terms of IDs, I'm not sure what can be done. Fundamentally, each entry has to be identified in order for changes from the calendar to make it back into Emacs. I'm going to remove the tags (per #8) and use the headings properties instead.

dmitrym0 avatar May 18 '22 17:05 dmitrym0

Cool! I have subscribed to the thread and will keep an eye on it then 👍

wuqui avatar May 19 '22 07:05 wuqui

Rudimentary implementation of this in feature/react-calendar branch.

One issue that I haven't been able to resolve yet is that I rely on scheduled/timestamped items first and THEN get their clocked items. As far as I've been able to find there's no graceful way of finding clocked in items for a given time period.

dmitrym0 avatar Aug 06 '22 17:08 dmitrym0