decaf-dev / obsidian-vault-explorer

Explore your Obsidian vault in visual format
https://vaultexplorer.com
MIT License
37 stars 1 forks source link

Background update Frequency #78

Closed Moyf closed 1 week ago

Moyf commented 3 weeks ago

image

I don't know how frequently it would re-scan the vault, but if I leave this tab in background, it would continuously showing logs.

Could we set the Update frequency.. Or, more importantly, if the Vault Explorer Tab is not active, is it possible to lower the update frequency?

decaf-dev commented 3 weeks ago

It's actually not rescanning the vault. It's just updating timestamp values that are used for filtering. Calling Moment.JS functions are really expensive computationally. The update is set to 1 minute right now.

decaf-dev commented 3 weeks ago

The idea is if you leave the view open, you never have to close it and reopen it to get the latest timestamp filtered data.

decaf-dev commented 3 weeks ago

Sure. I can add a setting for that

decaf-dev commented 3 weeks ago

I think I will also update the way that this system works to only update the view on the appropriate day.

decaf-dev commented 3 weeks ago

By the way, you can also change the logger settings to be Error or Off. That will also get rid of the messages

Moyf commented 3 weeks ago

The idea is if you leave the view open, you never have to close it and reopen it to get the latest timestamp filtered data.

Yay definately agree with it! Roger that :D

Moyf commented 3 weeks ago

By the way, you can also change the logger settings to be Error or Off. That will also get rid of the messages

Good to know, thank you!

decaf-dev commented 1 week ago

Added a Enable clock updates setting in 1.13.0. Feel free to disable it.