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

Notify timestamps with no deadline nor scheduled #11

Open
wlmb opened this issue Sep 11, 2024 · 8 comments
Open

Notify timestamps with no deadline nor scheduled #11

wlmb opened this issue Sep 11, 2024 · 8 comments

Comments

@wlmb
Copy link

wlmb commented Sep 11, 2024

Is it possible to modify the code to allow notifications for items that have no deadline or are not scheduled but have an ordinary timestamp? I saw the variable my-org-notify-timestamp-type defines currently only the two types :deadline and :scheduled

@p-m
Copy link
Owner

p-m commented Sep 11, 2024 via email

@wlmb
Copy link
Author

wlmb commented Sep 11, 2024

Yes, exactly, an item with a timestamp but with no SCHEDULE or DEADLINE as in your example.

@p-m
Copy link
Owner

p-m commented Sep 12, 2024 via email

@wlmb
Copy link
Author

wlmb commented Sep 12, 2024

Hi. I'll look in more detail at the code then.

According to the orgmode manual (for example, in https://orgmode.org/manual/Deadlines-and-Scheduling.html) ordinary timestamps are for appointments, meetings, etc., activities that are for a specific time and date, while SCHEDULE is for initiating work that may take a long time and DEADLINE for when it should be finished. Thus, my agenda is full of timestamps for meetings, classes, seminars, appointments, etc., with no DEADLINE and no SCHEDULE. It would be nice to be 'notified' of those events too.

Timestamps are allowed in the body of an entry. Maybe that is the reason they are not parsed as part of the headlines.

Regards,
Luis

@wlmb
Copy link
Author

wlmb commented Sep 12, 2024

Replacing

(org-element-parse-buffer 'headline)

with

(org-element-parse-buffer 'object)

does retrieve all the timelines as an element

(paragraph ...(timestamp (:type active ...)))

after the headline. It also returns the scheduled and deadline entries within the headline as

(headline(... :deadline (timestamp(...)) :scheduled(timestamp(...))) 
  (section...(planning(... :deadline (timestamp(...))  :scheduled(timestamp(...)))))

Would this help?

Regards,
Luis

@p-m
Copy link
Owner

p-m commented Sep 13, 2024 via email

@wlmb
Copy link
Author

wlmb commented Sep 17, 2024

I understand. I'll try to find some time to try to understand the required changes, but I don't think it will be too soon :(

@lnguyen4
Copy link

i don't know if this will help but org-mode has repeated-tasks

https://orgmode.org/manual/Repeated-tasks.html

This may be relevant to the events that are scheduled periodically.

I am just about to try org-notify for my workflow so I am not really versed in the details of this package.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants