-
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
Refreshing 'R' the file list fails when a new file name matches an existing one with different case. #1329
Comments
This may be an OS-specific problem. I am on Mac OS Ventura, Vim 9, and this seems to work perfectly.
Screen.Recording.2022-11-13.at.18.56.39.mov |
NERDTree seems to be unable to recognize filename case, which is a different problem. Please try renaming the file outside of vim. I am updating the issue to reflect this point. Thank you. |
What you have done in this reply is try to match against the git filename matcher. Git is designed to be portable, such that the git filename matcher will preserve case but match filenames whose only difference is case. Therefore, git will show test.txt and TEST.txt as the same file. Because of limitation in Microsoft filesystems. |
Now we know it's a filesystem issue. Maybe NERDTree could look into handling Microsoft filesystems better? I don't know a good solution to this. But generally files should be unique on their non-case-sensitive names. Hopefully someone with a Windows machine can look into this. I may not be of much help since I don't have the right environment to reproduce this. |
Check that 'mv' is not an alias of 'git mv' in your shell. Unix systems(OSX, Linux, BSD, etc but not Windows) have case sensitive filenames. |
Also, I see your machine is an Apple. I understand that some filesystems that OSX uses are not case-sensitive. So try to reproduce the problem in a Linux machine, which follows closer the POSIX standard in this regard. |
Self-Diagnosis - CHECKED - NOT FOUND
Environment
:version
: Vim 9.0 Patch 1-453?
: 6.10.16"Empty vimrc file
Maybe related to Issue #1241
Steps to Reproduce the Issue
Current Behavior (Include screenshots where appropriate.)
Two files with the same name 'TEST.txt' appear. Clicking any of the two opens 'TEST.txt'.
The file test.txt does not appear and cannot be opened from NerdTree
Expected Result
Both files 'TEST.txt' and 'test.txt' show up in the list of files.
The text was updated successfully, but these errors were encountered: