-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
(m)ove the current node
shortcut doesn't treat filepaths as case sensitive
#1373
Comments
(m)ove the current node
shortcut doesn't treat filepaths as case sensitive
It's not a bug! It is a platform limitation. The MacOS does not support case-sensitive file names by default. If I'm not mistaken, you can only enable it with some additional options. I'm not a Mac user so I would appreciate it if someone could validate my fact here. |
The current implementation of this action does this by checking whether the destination file exists or not, And on platforms that do not have case sensitivity, it refuses to do this renaming Because it thinks there is already a file that exists with the input name. I'll work on a workaround for this. |
Feel free to create a PR if you want to do it. I'll try to help you with it if you need any. |
Hello, Good news, I've managed to find a workaround for this issue, I'm proposing a new option called let g:NERDTreeCaseInsensitiveFS=1 I've explained it in the documentation just use I would appreciate it if you give this PR a spin, I can only confirm that it works on Windows machines(yes windows also has a case-insensitive file system). |
Wonderful, appreciate you putting together a patch for this @rzvxa! I'm able to confirm this is working on macOS 👍 |
Great, Since I don't have write access to the project it would be nice if you could give it a review on the PR so the current maintainer gets a point of reference from a Mac user. It is up to you if you want to keep this issue open until the merge or close it since PR alone can keep track of this issue(and you can always create new issues if you find anything weird with the new implementation). |
Hello @kevinkowalew |
Hi @rzvxa, I tested both 0 and 3 on macOS this morning and it achieves the desired behavior. I'll drop a comment on ¥our PR as well to indicate that this is ready to be merged. Thanks again for your help with this issue! |
@kevinkowalew |
Happy to help @rzvxa. Thanks again for putting in the time to put together a patch for this! |
Description
(m)ove the current node
menu shortcut doesn't treat file paths as case sensitive. This prevents the command from detecting changes to the capitalization of letters in a move command (ex: it treats~/project/Test.go
and~/project/test.go
as equivalent).Environment
macOS Sonoma (14.0)
:version
: vim9.0.1544
?
:6.10.16
Steps to Reproduce the Issue
test.txt
vim
& openNERDTREE
mm
command and name itTest.txt
Current Behavior (Include screenshots where appropriate.)
NERDTREE: This destination already exists. Try again
Expected Result
The text was updated successfully, but these errors were encountered: