orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

Show free time in the agenda

Open gerazov opened this issue 4 years ago • 17 comments

Does this feature exist in Emacs orgmode core?

Yes

Orgmode link

It seems to be built-in in e-macs.

image

Feature value

It's really helpful when scheduling to-dos. And it doesn't need to crowd the agenda as in the printscreen above, i.e. a single dotted line between non-adjacent tasks would be really helpful :+1:

gerazov avatar Sep 23 '21 06:09 gerazov

It's this option: https://www.gnu.org/software/emacs/manual/html_node/org/Time_002dof_002dday-specifications.html

I find it a bit annoying to be honest, but I guess someone can find it useful.

kristijanhusak avatar Sep 23 '21 08:09 kristijanhusak

Yeah it could be less obtrusive - a single line or smth, just to let you find a free time slot at a glimpse of the eye. Atm you have to check end times vs start times across the agenda ...

gerazov avatar Sep 23 '21 08:09 gerazov

I'm not sure I understand how you mean to show only a single line?

kristijanhusak avatar Sep 23 '21 09:09 kristijanhusak

Smth like

image

gerazov avatar Sep 23 '21 09:09 gerazov

Is it configurable like this in the emacs itself or you just "draw" it for purposes of showing it to me? When I implement this (not sure when it will happen), it will follow the emacs orgmode functionality, which is he first screenshot I guess.

kristijanhusak avatar Sep 23 '21 09:09 kristijanhusak

I haven't used e-macs ...

gerazov avatar Sep 23 '21 10:09 gerazov

Ah, ok. I just saw that dates in the screenshot are from 20219 😄 When it gets implemented, it will be as on the first screenshot, if that helps you at this moment at all.

kristijanhusak avatar Sep 23 '21 11:09 kristijanhusak

Sure - awesome :love_you_gesture:

gerazov avatar Sep 23 '21 11:09 gerazov

@kristijanhusak

I've started working on this. Currently, the AgendaView is built from AgendaItems. Those separators required for the time grid 'are' AgendaItems, but they definitely don't check all the boxes required for an AgendaItem. They don't have a real headline, but e.g. build_agenda_item_content expects the item to have one. Now, how do we deal with this? Especially since we may move to Teal.

Do we want some kind of SeparatorItem type or should AgendaItem be modified to allow for more flexibility? Something like AgendaItem:newSeparator? Shall I 'spoof' an AgendaItem somehow?

jgollenz avatar Jan 14 '23 22:01 jgollenz

Something like AgendaItem:newSeparator

Go with this. I would treat these as agenda items, even though they are not a real headline.

kristijanhusak avatar Jan 14 '23 22:01 kristijanhusak

@jgollenz thanks for picking this one up :pray:

It would be great if the free time is collapsible like in the second screenshot. This would avoid spamming the agenda if there are only a few scheduled items.

gerazov avatar Jan 16 '23 13:01 gerazov

You're welcome :+1:

It would be great if the free time is collapsible

This sounds like a nice idea. However, it doesn't seem to be part of emacs orgmode. But it might be a case for a custom agenda view. For now, I'll focus on getting the default behavior right

jgollenz avatar Jan 17 '23 09:01 jgollenz

We could improve on emacs if it makes sense :thinking:

gerazov avatar Jan 17 '23 11:01 gerazov

Agreed, but there are still a lot of things from the core we are missing. Those have higher prio for me ;)

jgollenz avatar Jan 17 '23 20:01 jgollenz

Ok, only if it's easy then :slightly_smiling_face:

In my workflow I'm not really missing much functionality so I guessed we're nearing v1.0 :sunglasses:

gerazov avatar Jan 18 '23 09:01 gerazov

Unfortunately we don't have a proper roadmap, so 'v1.0' isn't really defined :/

jgollenz avatar Jan 18 '23 10:01 jgollenz