Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show free time in the agenda #96

Open
gerazov opened this issue Sep 23, 2021 · 17 comments
Open

Show free time in the agenda #96

gerazov opened this issue Sep 23, 2021 · 17 comments
Labels
core-feature Feature is in orgmode core

Comments

@gerazov
Copy link
Contributor

gerazov commented Sep 23, 2021

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 👍

@gerazov gerazov added the core-feature Feature is in orgmode core label Sep 23, 2021
@kristijanhusak
Copy link
Member

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.

@gerazov
Copy link
Contributor Author

gerazov commented Sep 23, 2021

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 ...

@kristijanhusak
Copy link
Member

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

@gerazov
Copy link
Contributor Author

gerazov commented Sep 23, 2021

Smth like

image

@kristijanhusak
Copy link
Member

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.

@gerazov
Copy link
Contributor Author

gerazov commented Sep 23, 2021

I haven't used e-macs ...

@kristijanhusak
Copy link
Member

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.

@gerazov
Copy link
Contributor Author

gerazov commented Sep 23, 2021

Sure - awesome 🤟

@jgollenz
Copy link
Contributor

@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?

@kristijanhusak
Copy link
Member

Something like AgendaItem:newSeparator

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

@gerazov
Copy link
Contributor Author

gerazov commented Jan 16, 2023

@jgollenz thanks for picking this one up 🙏

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.

@jgollenz
Copy link
Contributor

You're welcome 👍

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

@gerazov
Copy link
Contributor Author

gerazov commented Jan 17, 2023

We could improve on emacs if it makes sense 🤔

@jgollenz
Copy link
Contributor

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

@gerazov
Copy link
Contributor Author

gerazov commented Jan 18, 2023

Ok, only if it's easy then 🙂

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

@jgollenz
Copy link
Contributor

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

@cvigilv
Copy link

cvigilv commented Mar 25, 2025

Any new insights into this? This is a feature of Orgmode that is pretty useful for scheduling and time-blocking. In Emacs, the option is org-agenda-time-grid (source). I'm unsure if this could be implemented with the current API. If possible, let me know and I could come up with a small PR to implement this functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core-feature Feature is in orgmode core
Projects
None yet
Development

No branches or pull requests

4 participants