Hey,
so I want to create a macro that can output every tiddler which has fields corresponding to a given month. Right now I’m using filters that detect if a tiddler has the field month and year with the corresponding values. So if I’ve read a book in November 2024, the tiddler would have fields
month:nov
year:2024
So then a tiddler called November can list all books I read that month. Only I have to use a different filter for each year.
However, let’s say I’ve read a book from November 2024 to January 2025. Now the filters are
month:nov,dec,jan
year:2024,2025
This breaks the filter, because it is impossible to determine whether the book was read in November 2024 or November 2025 based on the filters alone. So this system is essentially broken.
Another idea that I have is creating date ranges for tiddlers with a start-date and end-date. So now the book tiddler would have fields
start-date:20241101
end-date:20250131
Format is yyyymmdd. However I don’t know how the filter could look like then. It would need to know, that the numbers one to four (yyyy) and five,six (mm) need to be excised individually to correctly attribute year and month. I tried to ask ChatGPT to create a macro that does just that, however it hasn’t been successful. Since I’m absolutely clueless about macros in general, I’m probably punching way above my weight here.
If necessary I can show examples of the current filter as well as the non-functioning macro. I’ve anybody has ideas I’m happy to hear them!