helix
helix copied to clipboard
Added command to rename current document, with lsp support
#4393
Includes willRenameFiles and didRenameFiles requests to the language server. Honestly not sure if didRenameFiles is even needed here
Should file changes suggested by the language server be automatically saved if the file didn't have any other changes?
There is already https://github.com/helix-editor/helix/pull/4514 but it doesn't cover the LSP renaming
Nice one! Really happy that it includes LSP rename support 👍🏻
I added the rnm alias for the command, referring to #4514 (comment)
I wonder if it would be good to add a feature to automatically save suggested changes from the lsp if a file didn't have changes before, saves the trouble of opening every file and saving manually, or perhaps a status message saying which files changed?
Looking forward to this!
I need to test this, but do suggested changes cause non-open files to be opened?
I wonder if it would be good to add a feature to automatically save suggested changes from the lsp if a file didn't have changes before, saves the trouble of opening every file and saving manually
IMO it's not needed, as :wa is easy enough, and there's already editor.auto-save. I get wanting transactionality, since the rename is immediate, but IDT it warrants a special case.
I need to test this, but do suggested changes cause non-open files to be opened?
I wonder if it would be good to add a feature to automatically save suggested changes from the lsp if a file didn't have changes before, saves the trouble of opening every file and saving manually
IMO it's not needed, as
:wais easy enough, and there's alreadyeditor.auto-save. I get wanting transactionality, since the rename is immediate, but IDT it warrants a special case.
Ah I didn't even know about :wa, I guess it's not needed then
Ah I didn't even know about :wa
It's a vimism. There's also :wqa.
Should the lsp errors be displayed in the status bar, along with the message that the file was successfully renamed?
Why it is not merged already?
Why it is not merged already?
Waiting for reviews
Why it is not merged already?
Waiting for reviews
Can anyone review or contributors only?
Why it is not merged already?
Waiting for reviews
Can anyone review or contributors only?
Only "reviewers with write access" and I can't even request reviews
Why it is not merged already?
Waiting for reviews
Can anyone review or contributors only?
you are probably new to opensource. A PR needs to be reviewed by a miantainer before its merged. Only maintainers can review PRs. We can't just trust random people with code review. There are hundreds of issues and PRs for us to get through so it can take a while.
Why it is not merged already?
Waiting for reviews
Can anyone review or contributors only?
you are probably new to opensource. A PR needs to be reviewed by a miantainer before its merged. Only maintainers can review PRs. We can't just trust random people with code review. There are hundreds of issues and PRs for us to get through so it can take a while.
yeah, I am new. Thanks for providing information about reviews!