Hello,
Anyone aware of any package/code snipped that could replicate the paste behavior of vs code? To elaborate what I mean by that. When I copy image in file manager and paste it in a markdown file in vscode it automatically converts it into relative path from the current file. Alternatively is there a way to auto complete in the `C-c C-i` mini buffer?
The latest version of markdown-mode already support media handler for images and drag and drop images.
https://github.com/jrblevin/markdown-mode/commit/e10e5af
You need to to update to Emacs 29.1 or later version to use this new feature.
And the org-mode support will also coming soon.
https://list.orgmode.org/87a5s98x67.fsf@gmail.com/T/#m3c072c13b245eedd20241a84e7ee2efbde8dd88a
Note that if you want to copy (image path or image contents) and paste, you need to use
yank-media
on the emacs side, otherwise it just pastes the latest copied text.(But drag and drop will just do what you mean.)