Single File Rename, No Retry on Overwrite

Discussion related to "Everything" 1.5 Alpha.
Post Reply
therube
Posts: 4982
Joined: Thu Sep 03, 2009 6:48 pm

Single File Rename, No Retry on Overwrite

Post by therube »

Single File Rename, No Retry on Overwrite


single file rename,
if exist overwrite condition
only options are overwrite or quit
(No, is [also] quit)

no option to "re-rename" (without first quit)


create files; c:/tmp/test & c:/tmp/test.x
search c:/tmp
rename test.x to test
-> Rename File, message dialog, no ability to change the name from test.x to test.y without first aborting...
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Single File Rename, No Retry on Overwrite

Post by void »

This will only occur when you have enabled rename_overwrite



One possible solution I could implement is to block renames immediately when the filename already exists, allowing you to change the filename without closing the rename edit control.

For example:

Select test.x
Press F2.
The rename edit control is shown.
Rename test.x to: test
Press ENTER.
A balloon is shown the filename already exists.
Everything will still be renaming the file. -the rename edit control is still shown.
Change the name to test.y

With this solution you lose the ability to overwrite files.
Would this be a problem? -are you using rename_overwrite to overwrite existing files?
-This option would have to be enabled, it would never be enabled by default.



The rename overwrite dialog gets ugly when there are multiple options, eg: Replace the existing filename? use a different filename? retry (assumes you would rename the conflicting file outside of Everything)?
Keeping the rename edit control shown after the dialog is cancelled feels awkward.
therube
Posts: 4982
Joined: Thu Sep 03, 2009 6:48 pm

Re: Single File Rename, No Retry on Overwrite

Post by therube »

-are you using rename_overwrite to overwrite existing files?
Yes I did have that set. Must have been from a long time ago.

Do I need it - one way or the other, particularly?
Not sure, I'd have to think about it, & see what I do / don't do in various situations.

Probably doesn't make much difference one way or the other.


Though I don't see how this is much different from the ability existing for various situations with Multi-file Rename.


A short video (of Salamander):
singlefilerename.7z
(361.96 KiB) Downloaded 160 times
(First number of shots, I ESC'd, which is the same as No.)
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Single File Rename, No Retry on Overwrite

Post by void »

I have put on my TODO list: when clicking No to "overwrite file", keep the rename edit open so user can re-adjust the name.
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Single File Rename, No Retry on Overwrite

Post by eswul62 »

void wrote: Thu Jul 21, 2022 7:56 am I have put on my TODO list: when clicking No to "overwrite file", keep the rename edit open so user can re-adjust the name.
Stumbled over this thread as I wanted to post one about something like 'renaming when a file exists'.

Right now I can:
- r-click a file on (e.g.) Windows desktop
- copy
- bring up Everything
- select a line containing the folder I want to copy the file into
- r-click, select folder from the context menu and click on copy in the following window panel

This works well and I am very glad with this method: it makes reorganizing files much easier.

However, when a file already exists, the options are a little limited:

The destination already has a file named

Replace the file in the destination
Skip this file
Compare info for both files


Within Explorer, when copying the same file, the word 'copy' will b added to the file name.
(Or even Copy(1), Copy (2)...)

Not sure if at all it is possible, but my suggestion/request would be to have this also available when copying the context menu as per above, i.e. an option to rename new file if file exists

-
Everything-Suggestion-Copy-Paste-Rename New when file exists-15082022 050558.png
Everything-Suggestion-Copy-Paste-Rename New when file exists-15082022 050558.png (39.38 KiB) Viewed 3243 times
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Single File Rename, No Retry on Overwrite

Post by void »

I will consider an option to rename the file when the destination file already exists.

Thank you for the suggestion.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Single File Rename, No Retry on Overwrite

Post by void »

Everything 1.5.0.1316a will now allow you to continue renaming your file when clicking No.
eswul62
Posts: 130
Joined: Wed Jul 31, 2013 6:07 am

Re: Single File Rename, No Retry on Overwrite

Post by eswul62 »

Wow . . . Super!!

Thank you very much.

Thumbs-up-for-Everything.png
Thumbs-up-for-Everything.png (9.69 KiB) Viewed 2683 times
therube
Posts: 4982
Joined: Thu Sep 03, 2009 6:48 pm

Re: Single File Rename, No Retry on Overwrite

Post by therube »

1317

Works.
First time I hit it, it felt a bit odd, but it's fine :-).

---

rename, overwrite condition
(dealing only with a single file, instance)


Do you want to overwrite, "abc123.txt"?

There is already a file with the same name in this location.

Yes - No - Cancel

No, returns you to the rename dialog
- i guess that is "right", it's just "odd" how it happens
(i see, the diff, & what makes it odd, is that this is occurring
"inline", where i am used to seeing a modal dialog, so all is OK)

(No, followed by ESC, acts as Cancel, & that is fine.)

Cancel (or ESC), aborts the attempt
- name is left unchanged as expected

Yes, i didn't get to - yet
- but i'll assume that it will go ahead & rename it ;-)
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Single File Rename, No Retry on Overwrite

Post by void »

Thanks for the feedback therube,
- i guess that is "right", it's just "odd" how it happens
I'll add an option to disable it and leave it enabled by default for now.
void
Developer
Posts: 16764
Joined: Fri Oct 16, 2009 11:31 pm

Re: Single File Rename, No Retry on Overwrite

Post by void »

Everything 1.5.0.1318a adds a rename_keep_renaming_on_no ini setting.

To cancel renaming when clicking No in a conflict dialog:
  • Copy and paste the following into your Everything search box:
    /rename_keep_renaming_on_no=0
  • Press ENTER in your Everything search box.
  • If successful, rename_keep_renaming_on_no=0 is shown in the status bar for a few seconds.
Post Reply