Paste Image into frontmatter property

Use case or problem

I am making some atomic notes that I show using dataview. It’s already possible to have an image link in a property and dataview will be able to show it in a table. However there seems to be no way to directly paste an image into a property in live-view, which slows down my workflow.

Proposed solution

When the cursor is in the property live view field it should register the paste shortcut and create a property with the image link:
image

---
image: "[[Pasted image 20250201152634.png]]"
---

Current workaround (optional)

For now you need to switch to source view and paste the image there and then format it correctly by removing the exclamation mark.
Alternatively you can do everything in live view but first paste the image into the note content and then copy only the name to the property.

Related feature requests (optional)

Similar to: Remove html paragraphs on paste into property

Hmm, have you tried with drag n drop, instead to paste?
Furthermore, this sounds like a job for shell scripts. Doing this stuff manually takes… some time

Drag & drop from where? When I do this from the obsidian file explorer it also adds the exclamation mark which is the same problem. I can’t get it to work from windows file explorer or directly from a browser image either.

In any case this wouldn’t really solve my issue, as the main use case is taking screenshots (also works with pdf, videos, etc) and adding them directly via the ctrl+v.

I paste screenshots as well, usually in the note body itself.
Wouldn’t be easier if you:

  1. Paste the screenshot into your note body (not the properties)
  2. Copy this screenshot URI and paste it your properties

Oh, windows. Well, bash scripts are for Unix systems, unfortunately I don’t know windows powershell.

Did you check if there’s some plugin which you could use?

Those steps are what I do right now and it’s just cumbersome when creating multiple notes… I did search for plugins but found nothing. Actually thinking of writing one myself as a practise since this probably won’t get attention any time soon.

Here’s the plugin I made