Save search with a preset: on this day

The “On this day” filter seems to become fixed to a specific date once it is saved. Instead of always representing the current day, it effectively becomes “On this day” for the date it was saved.

Step by step:

  1. Create an advanced search using the \on_this_day preset.

  2. Verify that the search returns the expected results.

  3. Save the search as an overview.

  4. Check the overview the following day.

Expected behavior:
The overview should automatically update and show results for the current day.

When saving the overview I’m selecting the “All text”. I think we are missing the “dynamic option” when saving the search.

Actual behavior:
The overview still uses the previous day’s date instead of advancing to the current day.


I also noticed an undocumented preset (or at least I couldn’t find any information about it): \ongoing.

It has an Apple Watch icon. What is it used for?

I had a look, and in my version \ongoing becomes \now

Thanks for the clear report, you’ve pinpointed it exactly.

You’re right that the “on this day” preset is getting frozen to a fixed date when you save it as an overview. It’s parsing to that day’s actual date at the moment you save, and the saved overview then keeps using that date instead of advancing. That’s a bug, and we’ll fix it so the preset can be saved to re-evaluate each day.

A couple of things in the meantime:

When you save a search as an overview, there’s a “relative date” option in the save panel. Ticking it tells Agenda to store dates as “today”, “yesterday”, etc. rather than a fixed calendar date, so the overview advances on its own. The catch is that this option currently doesn’t apply to the “on this day” preset, which is the bug, but it does work for other date filters.

So as a workaround, if what you want is “notes dated to today” (advancing each day), build the search with \today instead, for example on the start date or assigned date, and tick “relative date” when you save. That gives you a self-advancing overview today.

One distinction worth flagging: “on this day” matches notes for this calendar day in any year (think anniversaries / “this day in past years”), whereas \today matches just today’s date. If you specifically want the any-year behaviour, \today isn’t a substitute, and you’ll need to wait for the fix.

On \ongoing: it’s an alias for \now (currently ongoing notes). It’s a real preset, just not documented yet, we’ll add it to the cheat sheet. Note it has the same freeze issue as a saved overview, so that one’s on our list too.