Skip to content

paste_img from a copied file path #516

Description

@sirex

🚀 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.

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions