Update relative paths in markdown style hyperlinks when cutting and pasting

We strongly recommend you to search the forum with possible keywords before making a new feature request. If your request is very similar to an existing one, consider liking it and/or making a comment rather than making a new one. Once you’ve searched and determined that this is a new request, delete this line.

Use case or problem

When cutting and pasting some links from one file to another file in another directory, the relative paths in markdown style don’t update in time, although the link still work.

Proposed solution

when pasting, detect the content and find internal links to files and images. Then update the relative paths.

Current workaround (optional)

rename the linked file or image with an addition and then rename them again with the origin name, using the always update internel link function. I think there are some utilities available for reusing.

Related feature requests (optional)


This is unlikely to happen in core obsidian, as it is difficult and performance intensive.
Improvements can be made to the “Note composer… extract …”.
Moreover, there are still plenty of more basic issues with Obsidian’s handling of links in relative mode.

Thanks, I understand. :grinning:

Is it easy to make a plugin to scan selected texts and get all linked files which I think obsidian API provide possibly and then update them? If so, I will try to create a plugin for myself.