-
-
Notifications
You must be signed in to change notification settings - Fork 638
Renaming a file to the same name with different casing on a WSL #3117
Copy link
Copy link
Closed
Labels
OS Windowsspecific to windowsspecific to windowsOS Windows WSLspecific to windows WSLspecific to windows WSLPR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatednvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedbugSomething isn't workingSomething isn't working
Description
Activity
Metadata
Metadata
Assignees
Labels
OS Windowsspecific to windowsspecific to windowsOS Windows WSLspecific to windows WSLspecific to windows WSLPR pleasenvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatednvim-tree team does not have the bandwidth to implement; a PR will be gratefully appreciatedbugSomething isn't workingSomething isn't working
Description
When renaming a file that is on windows into its version with a different casing the NvimTree raises an error and refuses the rename. For instance, renaming
A.txt->a.txtis impossible, unless done via another unoccupied nameA.txt->tmp.txt->a.txt.Neovim version
Operating system and version
Debian 12, Linux 5.15.167.4-microsoft-standard-WSL2
Windows variant
WSL
nvim-tree version
5bea2b3
Clean room replication
Steps to reproduce
/mnt/c/Users/<USERNAME>).A.txt)nvim -nu /tmp/nvt-min.lua.:NvimTreeOpen.A.txt).rand rename it to the lowercase version of its name (e.g.A.txt->a.txt).[NvimTree] Cannot rename /mnt/c/Users/<USERNAME>/A.txt -> /mnt/c/Users/<USERNAME>/a.txt: file already exists.Expected behavior
Step 9 should leave the file renamed and output like
[NvimTree] /mnt/c/Users/<USERNAME>/A.txt -> /mnt/c/Users/<USERNAME>/a.txt.Actual behavior
Step 9, error, no file renamed.