stardiviner <numbch...@gmail.com> writes:

> I hope the `yank-media` backed by `org--image-yank-media-handler` support
> hashing image in clipboard as filename, so that the function
> `org--image-yank-media-handler` can detect whether the clipboard image
> already exists.
>
> Here is my PoC which is not finished. Hope someone can complete it.
> ...

Does it have to be hash file name?
Maybe `org--image-yank-media-handler' can simply compare the file size
and maybe hash (if size differs) and, say, append #X to the filename
when there is an existing image with the same name?

-- 
Ihor Radchenko // yantar92,
Org mode maintainer,
Learn more about Org mode at <https://orgmode.org/>.
Support Org development at <https://liberapay.com/org-mode>,
or support my work at <https://liberapay.com/yantar92>

Reply via email to