abo-abo / org-download

Drag and drop images to Emacs org-mode
1.08k stars 79 forks source link

Inline images not being displayed automatically #170

Open archiif opened 3 years ago

archiif commented 3 years ago

Downloading images with org-download-image or org-download-yank doesn't automatically display the image being pasted. Strangely, it does display all other previously existing images in the buffer. Even more strangely, if you call org-download-insert-link directly with something like (org-download-insert-link "" "existing-image.jpg"), the image is successfully displayed. My guess is that (org-download--display-inline-images) is being called before the image exists in the local directory, but I'm not so sure.

senkowo commented 4 months ago

Might be a slightly different issue but running org-toggle-inline-images was the answer for me. And also the variable org-startup-with-inline-images to always show the images at file open.