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

Support for sexp entries? #53

Open
hey2022 opened this issue Apr 5, 2024 · 0 comments
Open

Support for sexp entries? #53

hey2022 opened this issue Apr 5, 2024 · 0 comments

Comments

@hey2022
Copy link

hey2022 commented Apr 5, 2024

Sexp entries with time ranges such as %%(school-timetable date 1) English 10:10-10:50 are not shown on the timeblock.
Is there a way that this could be done?

In this case, school-timetable is a function that checks if the date matches with my school's day 1 for the cycle. The reason why this cant be a normal timestamp is that for my school, every cycle repeats every 6 school days, so +1w won't work.

The relevant section on sexp entries:

The generality of sexp diary entries lets you specify any diary entry that you can describe algorithmically. A sexp diary entry contains an expression that computes whether the entry applies to any given date. If its value is non-nil, the entry applies to that date; otherwise, it does not. The expression can use the variable date to find the date being considered; its value is a list (month day year) that refers to the Gregorian calendar.

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

1 participant