Closed muellerto closed 1 month ago
Thanks for reporting @muellerto! I'll take a look at it as soon as I can.
Ok. The bulk rename function now checks for duplicate/existing files before renaming, warns and prompts the user for confirmation. Give it a try and let me know how it works.
Yeah, great, even on Windows with case insensitive file names. Thanks a lot!
Describe the bug When a bulk rename leads to equal file names which have been different before only one file remains.
To Reproduce I had files in a directory like these ones:
(Yes, real file names with brackets and slashes, don't ask ...)
Then I did
br *
on them and letvi
remove the brackets stuff:This was not a good idea because the three
Diabolica
files get indeed the same resulting name:But I didn't pay enough attention and so I did it. In the result of the bulk rename operation you have not 14 but only 12 files, two are missing. I think this is done just by
mv
, andmv
just does it this way. Yes, I readBut two things are really not good here:
Look, clifm transcends
mv
here a lot: a real bulk rename operation is not a concept ofmv
. So clifm should take it's responsibility here serious. When you bulk rename a bunch of hundred files you can easily make a mistake, especially when you use automatedvi
commands like I did. And a check would be rather simple (OK, I speak always in C++ terms with sorted containers and all that ...)Expected behavior I think bulk rename should detect that two (or more) files will get the same name before the operation is started because this is probably always not intended by the user. Perhaps it would also be a good feature to see what happens, an output like
Desktop: