-
Notifications
You must be signed in to change notification settings - Fork 21
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
Sexp diary entries support #31
Comments
Can you give me an example of where they fall in an org file? sexps are already supported in timestamps, and objects otherwise are intended to be implemented via queries. |
Yep, I saw that 👍🏻
They would be the top-level objects (?). Let me paste the example from https://orgmode.org/manual/Weekly_002fdaily-agenda.html
|
The text and formatting after the sexp isn't in the syntax description, as far as I can tell, I'm having some trouble finding information. Can they span multiple lines, after the ending parenthesis? I don't see anywhere that would answer that for me. How does that formatting cookie work? https://www.gnu.org/software/emacs/manual/html_node/emacs/Sexp-Diary-Entries.html mentions |
To be honest, I am not really sure where to look for that information. As an end-user, I just use |
In emacs orgmode, it looks like the sexp itself can be multiple lines, but the entry text afterwards can't be. That's somewhat straightforward to implement to start with, but there's some challenges still.
While the diary seems to typically evaluate to some datetime thing which ties into the display/agenda, if we have this construct in the grammar I'm not interested in restricting it to lisp or datetime/numeric values, so I'd like it to be able to handle other expressions (like So there are a couple approaches here I can think of:
So I think what I'm going to do is play with queries for approach 1, see if it's reasonable to implement with the current grammar without making it super complex. If not, I'll look into implementing approach 3 @kristijanhusak any thoughts? |
I would be satisfied with |
@milisims Looks like the usage of placeholders like |
I am not really sure but from the first look, this grammar does not implement parsing sexp diary entries.
Would you consider adding support for that (or at least accepting PR with this addition)?
The text was updated successfully, but these errors were encountered: