hedonihilist / obsidian-habit-calendar

Monthly Habit Calendar for DataviewJS. This plugin helps you render a calendar inside DataviewJS code block, showing your habit status within a month.
MIT License
30 stars 4 forks source link

Is it possible to use properties and more than one? #3

Open Graywaren opened 1 month ago

Graywaren commented 1 month ago

Hello I'd like to make a habit calendar that shows the icon on the calendar based on whether a file's list property has a value in it. I'd also like to use both more than one value in the same list property and more than one list property. Is it possible to do this with this plug-in? Could you help me with the code changes for it?

For example, my note has a list type property called "fruit", it can contain the values "apple", "banana", "orange". I'd like to create a calendar that shows an icon on each day for however many of those values it contains.

In addition, there's a property called "vegetable", it can contain the values "carrot", "lettuce", "broccoli". I'd like the calendar to also display an icon on each day for however many of those values it contains.

So there'd be day with apple and carrot icons, or carrot, lettuce, and banana icons, etc.

Hopefully that makes sense! Thanks for any help!