artempyanykh / marksman

Write Markdown with code assist and intelligence in the comfort of your favourite editor.
MIT License
1.85k stars 33 forks source link

Feature Request: implement WorkspaceWillRenameFiles #308

Open jiangyinzuo opened 3 months ago

jiangyinzuo commented 3 months ago

https://github.com/artempyanykh/marksman/blob/6e790e5eacc1c582a86dd1aae338c3728bab9608/LanguageServerProtocol/Server.fs#L656

This functionality is expected to update all of the file's references when a file is renamed/moved to another directory.

It will bring us a lot of convenience when refactoring our markdown project.

See also: https://microsoft.github.io/language-server-protocol/specifications/lsp/3.17/specification/#workspace_willRenameFiles

elgar328 commented 1 month ago

I desperately need this feature. When renaming a link like [[filename]] in helix ditor, the file name and links pointing to this file elsewhere need to be changed at the same time. And if the file name in the marksman lsp workspace is changed, several links need to be modified as well. When this becomes possible, I would like to use obsidian and the helix editor simultaneously to manage markdown files. It becomes possible for me to conveniently write notes through a terminal at my desk and access files using a mobile device while on the road.