Skip to content

fix(filesystem): handle case-insensitive renames on all OSs #1765

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

Merged
merged 3 commits into from
Apr 16, 2025

Conversation

iusx
Copy link
Contributor

@iusx iusx commented Apr 15, 2025

error

helloworld.c and Helloworld.c are recognized as the same file

I found a small issue with neo-tree. For example, if your file is named:

helloworld.c

and you want to rename it to:

Helloworld.c

you will get the warning: already exists, canceling.


Neovim version information:

NVIM v0.10.4
Build type: Release
LuaJIT 2.1.1741730670
Run ":verbose version" for more info

System info:

Darwin IUSX 24.1.0 Darwin Kernel Version 24.1.0: Thu Oct 10 21:03:11 PDT 2024; root:xnu-11215.41.3~2/RELEASE_ARM64_T6020 arm64

I know this issue doesn’t exist on Linux, but it does exist on my macOS system. This PR might have some issues, but it works fine on my system and fixes the problem. However, the code might not be very elegant.

Copy link
Contributor Author

@iusx iusx left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OMG, I had no idea that was possible! You’re awesome—thanks a ton, I learned so much

@pynappo pynappo changed the title fix(filesystem): resolve file renaming issue with case sensitivity on macOS fix(filesystem): handle case-insensitive renames on all OSs Apr 16, 2025
@pynappo pynappo merged commit 38cea2a into nvim-neo-tree:main Apr 16, 2025
9 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants