mkdnflow.nvim icon indicating copy to clipboard operation
mkdnflow.nvim copied to clipboard

Feature: MkdnMoveSource updates link references in other files in the notebook/wiki

Open avucic opened this issue 3 years ago • 3 comments

When file is renamed I'm expecting all link references to the same file in all related files will be updated with the new filename or not?

avucic avatar Sep 12 '22 11:09 avucic

Hi @avucic, thanks for the issue. The behavior you're experiencing is intentional/normal--only the link immediately under the cursor is renamed.

I do think this would be a nice enhancement to add in the future, although something like this will be more computationally expensive than renaming only the link under the cursor (and the cost will scale with the size of the notebook/wiki). I'll keep this on my to-do list but can't promise anything at the moment.

jakewvincent avatar Sep 19 '22 00:09 jakewvincent

Testing this in the dev branch.

jakewvincent avatar Oct 25 '23 15:10 jakewvincent

I have thought a lot about this even before encountering this plugin (which is genuinely awesome BTW, and it comes from somehow who knows zettelkasten well, has used Logseq, Obsedian, etc).

This is probably best left to a standard tool like fd to handle the heavy workflow. Using a root perspective, fd can update links super fast, way faster than any Lua implementation, without requiring any regex or relative logic.

helins avatar Mar 12 '24 00:03 helins

FYI: I've reverted the merge commit that brought this feature into the dev branch. It's now in its own branch feat/update-link-everywhere. The feature needs additional testing and tweaking to make sure it works with all possible perspective settings.

jakewvincent avatar May 27 '24 19:05 jakewvincent