mirnovov / obsidian-homepage

An Obsidian plugin that opens a specified note, canvas, or workspace on startup, instead of the most recent one.
MIT License
397 stars 19 forks source link

"Command: Open homepage" when homepage is already open #12

Closed Rainbell129 closed 2 years ago

Rainbell129 commented 2 years ago

Dear dev, I have updated the plugin some time ago and encountered a very minor problem.

I vaguely remember that back a few versions, when the homepage was already opened, running command: open homepage would refresh the site automatically. But after a few updates the command no longer works like this.

This is a much needed feature for me as I've linked the command to a header button, and would constantly need to refresh my homepage to rerender some dynamic Dataview blocks. Would you consider adding it back if it's not too much trouble?

mirnovov commented 2 years ago

I have replicated what older versions of this plugin would have done and it doesn't re-render Dataview. I think your issue may be caused by a change the Dataview maintainers made, not me.

Rainbell129 commented 2 years ago

I have replicated what older versions of this plugin would have done and it doesn't re-render Dataview. I think your issue may be caused by a change the Dataview maintainers made, not me.

Thanks for the reply!

Would the command refresh/reopen the page in the older versions?

I connected the command to a header button using the plug-in customisable page header. I did remember when pressing the button it would reopen the page before the update.

Hmmm strange. Might be some other plug-in conflict!

image

mirnovov commented 2 years ago

Would the command refresh/reopen the page in the older versions?

Yes, and it still does under certain circumstances. However, it seems like my changes had nothing to do with it, they were just a coincidence.

I'll see if I can add an option to rerender Dataview though, as other people may find it useful as well.