Talking to myself some more here.
I tinkered around with that loop but wasn’t sure what I was doing and tried once more to search for similar topics:
This topic mentions making a button that “edits” the code into what it already was, which will trigger reload. It works but I’m faced with the same question of how to automate pressing the button.
A function to reload Obsidian is mentioned here. I’m guessing it’s the one that this bit of code also uses:
// Automatically refresh the note after a certain interval
setInterval(() => {
location.reload();
}, 3000); // Refresh every minute (adjust the interval as needed)
I’ve tried to add this to my code block. It reloads the entire Obsidian vault, not just the one note the code is on.
Then there’s this topic that asks how to force refresh but no useful responses.
I’m not sure if what I’m trying to do is simply not doable. I even tried to open the file I want to refresh in TextMate and save it there. Lo and behold, it gets reloaded in Obsidian right away (with slight delay, probably the dataview generic reload time that can be changed in the settings). I don’t even have to edit the file at all; a simple save does the trick.
Current thoughts
Should I learn python to trigger saving the file once every minute whenever Obsidian is running? How much work would that be?
Also: What would be the best place/way to ask for help? Why am I not finding prior discussion on this?