typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 56 forks source link

[Feature] Refreshing local images after the file changes #5861

Open hard-sign opened 1 year ago

hard-sign commented 1 year ago

I use version: 1.7.5/Linux I insert a lot of SVG images in my document. All the images are local; I use relative paths. If I rewrite an image file, nothing changes in the document until I close Typora and re-open the document. Format → Image → Reload All Images does nothing Please add the possibility to manually reload an image.

abnerlee commented 1 year ago

Possible to attach a snip of your md file contains SVGs that cannot auto load for us to text it?

And what is your Linux distribution? If you also use other OS, does it also happens in other OS as well?

hard-sign commented 1 year ago

@abnerlee

➜ uname -a
Linux penguin 5.15.0-88-generic #98~20.04.1-Ubuntu SMP Mon Oct 9 16:43:45 UTC 2023 x86_64 x86_64 x86_64 GNU/Linux

Hm-m-m... I’ve just tried to reproduce the bug on a synthetic text, and I haven’t succeeded. Maybe, the problem is that the original text is too big:

➜ ls -l *.md
-rw-rw-r-- 1 hardsign hardsign 1400819 oct 28 10:00 dbguide_20231016.md
➜ wc -lwm dbguide_20231016.md 
   7363   86905  801838 dbguide_20231016.md