Richardsl / heatmap-calendar-obsidian

An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Apache License 2.0
645 stars 103 forks source link

Help - Changing Folder #18

Closed ObsidianTTRPGProject closed 2 years ago

ObsidianTTRPGProject commented 2 years ago

Sorry I feel like I should be able to figure this out but apparently I really suck at this dataviewjs stuff. I'm just trying to point the dataviewjs to a different folder and nothing seems to be working. Can you help point a noob in the right direction?

image

Richardsl commented 2 years ago

Might be a problem with the quotes. see this link https://blacksmithgu.github.io/obsidian-dataview/api/code-reference/#dvpagessource on the dv.pages(source) section "Note that folders need to be double-quoted inside the string (i.e., dv.pages("folder") does not work, but dv.pages('"folder"')"

Richardsl commented 2 years ago

or try escaping the punctuation mark

ObsidianTTRPGProject commented 2 years ago

I've tried messing with those quite a bit. The calendar doesn't render if the double quotes are missing. I've also tried testing with a #tag instead of a folder but that also returns no results. I'm using the test code provided and really only looking to point it to a different folder. I wonder if my vault has anything to do with it. I have a very large vault and it's been known to cause issues with other plugins (database folder).

image

ObsidianTTRPGProject commented 2 years ago

Did some further testing. Can get the code working on a different vault. Fails to pick up the data in my primary vault. My primary vault is rather large though and since I've seen similar issues with dataviewjs queries in my vault I'm starting to think the issue may be with the dataview plugin struggling.

ObsidianTTRPGProject commented 2 years ago

Tonight everything just seems to be working. I can't explain it.