-
-
Notifications
You must be signed in to change notification settings - Fork 2.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add rename command. #4514
Add rename command. #4514
Conversation
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
Co-authored-by: Michael Davis <[email protected]>
"Root path must be the same." | ||
); | ||
|
||
ensure!(!new_path.exists(), "File already exists."); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There could be a :rename!
/:rnm!
version that skips this check so that renaming can overwrite existing files
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yes, I think we can add that too.
I will continue and add them in a separate PR.
WDYT?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@the-mikedavis Pls let me know if you have any questions on this.
I think we could also use the LSP call: |
I think we should merge this PR instead, as it contains proper LSP support: #5531 , although it would be nice to add the shorthand |
Merged in #8584 which covers this and the language server bits |
I think that's an "issue" with the language servers themselves, not the helix lsp client. I say "issue" because you're using an lsp feature without waiting for the language server to load properly |
It still happens after the language server has loaded, note:
|
That I'm not 100% certain on as rust-analyzer handles everything correctly, I think the language servers aren't responding nicely to
Do you still get the errors in the log? |
#4393
Add rename command
:rename new_name.txt