tokenshift / obsidian-page-gallery

Generates a gallery based on selected page contents.
MIT License
68 stars 2 forks source link

Reduce annoying reloading with flashing #50

Closed Azona77 closed 1 year ago

Azona77 commented 1 year ago

The plugin will check the content every 2 seconds.

If any of the items are updated, the gallery page will refresh and flash (when gallery page is in the split window). Not sure why this issue is not occuring in the dataview plugin.

Although the reloading process is not a functional issue, it is still somewhat annoying. Imagine that, as you are typing, the page next to your editing note will flash every 2 seconds.

Azona77 commented 1 year ago

image I found this parameter of refreshInterval in the main.js, but simply changing it doesn't work as I thought. hope adding an option in the future version😉.

tokenshift commented 1 year ago

I've reworked the page-gallery refresh logic to avoid redrawing the whole view when pages are updated. This should remove the "flashing" issue without having to increase the interval or disable automatic refreshing entirely.