Open adshz opened 1 year ago
Maybe you've found out by yourself, but you could simply change the filter so that the heatmap is based on pages where gym
is present and the month is August.
Since you're using page.file.name
as the date
, I'm assuming that your filenames are dates, which means every page object will have the day
field available (see the docs). That field is a Luxon DateTime object.
Change where(p=>p.gym)
into where(p=>p.gym && p.file.day.month == 8)
and you should get what you want.
@tatablack that is still going to render the entire year
Closing as duplicate of https://github.com/Richardsl/heatmap-calendar-obsidian/issues/7
Hi there,
I was thinking about if there was a way to just show a specific month rather than a whole year, regarding the use case of tracking habits monthly.
My attempt was below
I added a key
month
with the value8
orAugust
but I knew it didn't work after reviewing the code inmain.ts
; If I wanted to develop this feature, what's the best way to do that? can you guide me a bit so I can learn and develop the specific feature for this plug in?Best, David