🚀 The feature, motivation and pitch
I want to copy just image path to an existing file. And I would like to use paste_img to copy that image, to Obsidian's files directory.
For example, if I copy /tmp/image.jpg, then running :Obsidian paste_img would copy /tmp/image.jpg to ~/vault/images/image.jpg.
Alternatives
An alternative would be, to always copy image to clipboard first, something like this:
convert /tmp/image.jpg png:- | xclip -i -selection clipboard -target image/png
But this involves image conversion and adding it to clipboard, then existing paste_img functionality would work.
Or I could simply copy image file to vault manually and then use it in .md file, but that is not very convenient.
🚀 The feature, motivation and pitch
I want to copy just image path to an existing file. And I would like to use
paste_imgto copy that image, to Obsidian's files directory.For example, if I copy
/tmp/image.jpg, then running:Obsidian paste_imgwould copy/tmp/image.jpgto~/vault/images/image.jpg.Alternatives
An alternative would be, to always copy image to clipboard first, something like this:
convert /tmp/image.jpg png:- | xclip -i -selection clipboard -target image/pngBut this involves image conversion and adding it to clipboard, then existing
paste_imgfunctionality would work.Or I could simply copy image file to vault manually and then use it in .md file, but that is not very convenient.