Some LSP servers allow moving code around with the refactor.extract code
action. For example: extracting some functions to a new class file.
I believe this would be handy for markdown files as well: it could be used to
easily split a growing note file into multiple ones, extracting some paragraph
or section to a new file and inserting a wiki link in place.
Hi @pacien! There's currently no extract refactor implemented. I see how this can be done to extract e.g. sections under a heading into a separate file. That'd be nice!
Some LSP servers allow moving code around with the
refactor.extract
code action. For example: extracting some functions to a new class file.I believe this would be handy for markdown files as well: it could be used to easily split a growing note file into multiple ones, extracting some paragraph or section to a new file and inserting a wiki link in place.
I see that there is a type definition in the project, but I could not find whether this is already implemented: https://github.com/artempyanykh/marksman/blob/662682b/LanguageServerProtocol/Types.fs#L544