orgmode icon indicating copy to clipboard operation
orgmode copied to clipboard

notifications: show notifications for all active dates

Open Maltimore opened this issue 2 years ago • 10 comments

This seems like an obvious/easy fix, but maybe (probably) there was a reason it wasn't done like this to begin with? It works for me so far. Closes https://github.com/nvim-orgmode/orgmode/issues/374

Maltimore avatar Feb 20 '23 10:02 Maltimore

I just noticed that this still doesn't work for repeater dates. (But I guess this PR is already an improvement over the status quo).

Maltimore avatar Feb 20 '23 15:02 Maltimore

I think this should be a configurable option. This way it doesn't break current behavior. What do you think?

jgollenz avatar Feb 20 '23 19:02 jgollenz

I have made the same change in my fork, and the reasoning in the linked issue is sound and I agree with it, but from a software product standpoint it would make sense to make it a configurable option for backwards compatibility and extensibility.

dtvillafana avatar Mar 22 '23 13:03 dtvillafana

Hey, sorry for not getting back to you @jgollenz, and thanks for your interest @dtvillafana. I'm still using this patch as well. Making it configurable is of course always an option but to be honest I see absolutely no reason not to include active dates in the agenda, I mean otherwise what's the difference to passive dates?

Maltimore avatar Mar 22 '23 14:03 Maltimore

Sorry, forget what I said. This is not about the agenda but about notifications. Yes I suppose one could have a config option whether to show notifications for active timestamps. I still wonder what the reasoning is to not show notifications for timestamped events by default, but to show them for SCHEDULED and DEADLINE.

Maltimore avatar Mar 22 '23 19:03 Maltimore

I took a look at the docs and actually the behavior you expect should already be happening, so strictly speaking this is a bug fix :wink: It says agenda tasks notifications there, so you are absolutely right. We also already have options for this, albeit the other way round:

deadline_reminder = true,
scheduled_reminder = true,

I tested your change and it looks good to me. When you mark the PR as ready I can merge it :+1:

jgollenz avatar Mar 25 '23 12:03 jgollenz

it would make sense to make it a configurable option for backwards compatibility and extensibility

@dtvillafana in this case behavior was actually not in line with what the docs say, so I don't consider it necessary to add an option. If need for it exists, we can think of introducing it but for now this is a bug-fix.

jgollenz avatar Mar 25 '23 12:03 jgollenz

Ok, ready for review!

Maltimore avatar Mar 26 '23 12:03 Maltimore

Did some more checks and it seems that

deadline_reminder = false,
scheduled_reminder = false,

have no effect any more. I get notifications for both DEADLINE and SCHEDULED tasks even when they should be turned off. Can you confirm this?

jgollenz avatar Mar 26 '23 21:03 jgollenz

Ah yes, you're right! Sorry, I was too eager to just fix my own use-case and didn't think about these settings. I'll have to make this PR much more through. I'll switch it back to draft.

Maltimore avatar Mar 26 '23 21:03 Maltimore