Where do I find the queries behind SCHEDULED AND DEADLINE?

Hi everybody,

I am using Journal queries in config.edn to display all my TODO tasks. Unfortunately, the query results are shown above the built-in “SCHEDULED AND DEADLINE” entry.

That’s why I have disabled the “SCHEDULED AND DEADLINE” entry in Journals by setting :feature/disable-scheduled-and-deadline-query? to true.

I would now like to add “SCHEDULED AND DEADLINE” back in by adding it as a custom query above my TODO query so that the most important tasks are automatically shown at the top.

Where do I find the queries behind SCHEDULED AND DEADLINE? They must be in the source code somewhere, but unfortunately, I wasn’t able to locate them there.

Thank you in advance for any help!

I think the only way is to add a new query for scheduled and deadline.
You can check this post

Yes, I agree, I want to recreate SCHEDULED AND DEADLINE, so I’m looking for the queries behind that feature.

Thanks for the link, I’ll check if I find the original or a similar query there.