CTRL+z a newly pasted image should delete the link AND the image from Obsidian

Right now pasting an image (let’s say from the web), then changing your mind and using CTRL+z to remove it results in the link being removed, but not the image in Obsidian itself. Manually cleaning those up is tedious.

I propose that if an image is pasted from somewhere and only has 1 reference, CTRL+z should also delete the file from Obsidian.

18 Likes

+1 for this and this could also extend to pasting the same image twice which should keep the same link instead of creating two images in the attachment folder.

6 Likes

Yes, excellent idea(s) - also see Pasting same image twice should not duplicate the image but paste the same link

1 Like