Closed mskvsk closed 3 months ago
I can't reproduce this; I might be misunderstanding the problem, but everything seems to work fine on Fedora Linux.
I can't reproduce this; I might be misunderstanding the problem, but everything seems to work fine on Fedora Linux.
Because Linux is by default case-sensitive. You should be able to reproduce it in macOS or Windows.
I'm currently working on this issue and have fixed the bulk_rename_do
function.
The rename_do
one is a bit tricky and may need some more time looking into it.
Should be fixed in https://github.com/sxyazi/yazi/pull/1185 by @Xerxes-2, please give it a try!
Thank you @sxyazi and @Xerxes-2, the issue is completely fixed!
I'm going to lock this issue because it has been closed for 30 days. ⏳ This helps our maintainers find and focus on the active issues. If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
What system are you running Yazi on?
macOS
What terminal are you running Yazi in?
kitty 0.34.1
Did you try the latest code to see if this problem got fixed?
Tried, but the problem still
yazi --debug
outputDescribe the bug
When renaming a file or files in an editor and changing just the case of some characters, Yazi acts as if it isn't sensitive to the case. So if trying to change a.txt to A.txt it produces the following error:
Failed to rename: a.txt -> A.txt: Destination already exists
Expected Behavior
When renaming a.txt to A.txt or A.txt to a.txt the operation should be done.
To Reproduce
Create a.txt
Select it and start rename command
Change the case of any character or characters, eg. A.txt
Save and exit
Confirm renaming:
a.txt -> A.txt Continue to rename? (y/N): y
Get the error:
Failed to rename: a.txt -> A.txt: Destination already exists
Configuration
no config
Anything else?
Also, as a related bug or a feature:
When renaming a file in Yazi (not in an editor) and doing the same - trying to change the case of any character(s) in the filename - it asks if an exiting file needs to be overwritten which is weird. As if it isn't sensitive to the cast at all and thinks that I am trying to rename to the same name instead of completely different name which should be the cast on Unix-based OS.