ostoe / Ob-ImagePastePlugin

MIT License
8 stars 3 forks source link

Make the smallest path to reference image #4

Open svdoever opened 9 months ago

svdoever commented 9 months ago

Thanks for a great plugin! I have one improvement I would like to see. I use Obsidian to write blog posts. I have two folders:

Pages - these are my published blog posts WIP - "work in progress" blog posts

I start a post in the WIP folder, say for example the post with filename new_post. If I paste an image, I get the following Markdown link:

![image-20242172518665.png](WIP/new_post/image-20242172518665.png)

When my post is done, I move both the new_post.md file and the new_post folder to my `Pages folder, but at that moment all links are broken. The image link also works if it was pasted as:

![image-20242172518665.png](new_post/image-20242172518665.png)

Would be great if that was the default behavior. I could not fix it with the other settings.

ostoe commented 9 months ago

Thank you for your suggestion. It may be a little troublesome to implement this function. I will try my best to do it in a few days.