Can we refresh the document when image changes? I found only external change to the md will trigger ob to re render the page, but corresponding related file change within the doc will not, I have edited some jpg and svg with some other editor, I want those changes also immediately see change when I click the save on my svg editor.
Pardon me, I renamed the title to be a bit more specific.
I didn’t notice until now that images don’t refresh automatically.
This bothers me too.
Anyone know of a workaround to force a manual refresh?
In Command Palette there’s “Reload without saving”. On Mac in the menu bar menu there’s View > Force Reload (No hotkey associated). I haven’t tested either for the subject of this thread.
These 2 reload commands are a bit too heavy-handed for me: they reload the entire app, cache (maybe just the Force Reload command does this one?), and plugins, which for me takes quite a while.
My workaround is to change the image name slight and then undo.
![[Image.png]]
For example, you can change the above to below and then undo
![[Image.png#]]
You can probably automate this via templater
There’s a post on how to refresh an active leaf vs reloading the whole app:
Ran into this trying to get a workflow for export/import Concepts app drawings. Works alright, when you bind it to ctrl-r
(newer versions of obsidian doesn’t bind to reloading app anymore).
At some point I’ll make a plugin that just watches active leaves for file changes and auto refresh (…hopefully not the whole leaf…maybe I’ll just do the change/undo in code lol). But this works well enough for now.
​