Prompt on filename collision during renaming

Have a suggestion for "Everything"? Please post it here.
Post Reply
775405984
Posts: 40
Joined: Tue May 30, 2017 5:32 pm

Prompt on filename collision during renaming

Post by 775405984 »

I suggest Everything can offer a solution for filename collision during renaming files.

Instead of a pop-up window saying there is an error, Everything can give me an option to add a suffix or automatically adds one for me.
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Prompt on filename collision during renaming

Post by void »

Everything should do this already for single file renames:


Here I have tried to rename DUPE - Copy.txt to DUPE.txt (which already exists)

I've added to my TODO list: Add an option to resolve rename conflicts by adding (x) suffix or allowing the user to add a custom suffix.

Thanks for the suggestion.
NotNull
Posts: 5461
Joined: Wed May 24, 2017 9:22 pm

Re: Prompt on filename collision during renaming

Post by NotNull »

This is what I see when renaming file1.txt to (the already existing) file2.txt:


2019-05-16 16_09_49-Window.png
2019-05-16 16_09_49-Window.png (32.13 KiB) Viewed 5135 times
therube
Posts: 4977
Joined: Thu Sep 03, 2009 6:48 pm

Re: Prompt on filename collision during renaming

Post by therube »

And on XP, F2 rename...
.
Everything - F2 Rename conflict.png
Everything - F2 Rename conflict.png (8.26 KiB) Viewed 5133 times
void
Developer
Posts: 16744
Joined: Fri Oct 16, 2009 11:31 pm

Re: Prompt on filename collision during renaming

Post by void »

Added to my TODO list.

I don't have a simple solution for this. I would like the OS to manage this, but looks like I'll have to implement my own dialog.

https://stackoverflow.com/questions/272 ... -fo-rename

I found the new IFileOperation API to be rather broken.
IFileOperation::CopyFile will abort on the first src not found. -windows 7 x64 sp1
Windows 10 it will attempt to rename the file twice. -try renaming C:\program files\asd3 => C:\program files\asd4 -we get an admin request, the rename happens, and then we fail because we try a second time and C:\program files\asd3 no longer exists. adding a sink does not help.
I too can confirm that the new API does not solve the 80070057 issue on Windows 10 x64 1809.
Post Reply