[x32] b13 Renaming Files in Branch Mode Moves Files

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
romulous
Senior Member
Senior Member
Posts: 226
Joined: 2003-11-19, 04:10 UTC

[x32] b13 Renaming Files in Branch Mode Moves Files

Post by *romulous »

I had a folder structure similar to this:
Parent Folder
-Sub Folder 1
Some files
-Sub Folder 2
Some Files
-Sub Folder 3
Some Files
etc

I was in branch view (Ctrl+B) in the parent folder. Noticing a few of the files had uppercase extensions, I decided to fix them while I was there. Highlighted some of the files, hit Shift+F6 and then ticked the 'Rename Each File Separately' box. Hit End, then Backspace 3 times to remove the extension, then typed the extension in lowercase and then hit Enter. Repeated for each file.

Then highlighted the second lot of files (still in branch mode). Repeated the rename.

I then exited branch mode to find TC had in fact moved the files I had renamed into the Parent Folder. I now have to somehow recreate my elaborate folder and file structure in that Parent Folder.

(Yes, I know - always have a backup of your data, don't bother to point that out).
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Confirmed only if you:
a) select more than one file
b) check the option "rename each file separately"
c) rename the files one by one

Not confirmed if you
d) use MRT
e) select only one file to rename it.
User avatar
romulous
Senior Member
Senior Member
Posts: 226
Joined: 2003-11-19, 04:10 UTC

Post by *romulous »

Thanks for the extra testing Samuel. Yes, a+b+c is exactly what I did sadly :(

(Anyway, I did manage to get my files back into the correct folders after TC moved them on me so I am a bit happier now. I don't know if this affects x64 or not, I don't have it installed at the moment.)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Yes, this behaviour is intentional - F6 and Shift+F6 not only rename, but also move files. To rename the files in place, you need to use the multi-rename tool.
Author of Total Commander
https://www.ghisler.com
User avatar
romulous
Senior Member
Senior Member
Posts: 226
Joined: 2003-11-19, 04:10 UTC

Post by *romulous »

Well, back to v7.56 for me I'm afraid in that case.

Edit: Done.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Yesterday I renamed a bunch of photos (from .JPG to *.jpg) in branch view... I know about this behaviour but forgot about it... And I got all of them in root branch view folder...

BTW it is not necessary to check 'rename each file separately', I've never used it.

ghisler(Author),
Maybe TC should show a confirmation (warning, suggestion to use MRT etc, question to continue) if user wants to rename files from multiple folders via Shift+F6? It will save a lot of nerves for people. You may provide an option to disable warning for users who don't like it.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Well, back to v7.56 for me I'm afraid in that case.
I don't understand, TC 7.56 and also all older versions behave the same way - nothing was changed...
Author of Total Commander
https://www.ghisler.com
User avatar
Samuel
Power Member
Power Member
Posts: 1930
Joined: 2003-08-29, 15:44 UTC
Location: Germany, Brandenburg an der Havel
Contact:

Post by *Samuel »

Perhaps no one noticed it yet?

IMO its a little bit inconsistent. Why does (d) and (e) work in branch view (without moving files to the root) and (a+b+c) does not work?

Why don't you add the current relative folder in front of the filename? (as done when only 1 file is renamed or MRT is used.) Are there any technical problems? I tried this manually and it works fine.
User avatar
romulous
Senior Member
Senior Member
Posts: 226
Joined: 2003-11-19, 04:10 UTC

Post by *romulous »

ghisler(Author) wrote:I don't understand, TC 7.56 and also all older versions behave the same way - nothing was changed...
Damn! So I uninstalled v8 and went back to 7.56a for nothing???? :( :( :( :(
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Samuel wrote:Perhaps no one noticed it yet?

IMO its a little bit inconsistent. Why does (d) and (e) work in branch view (without moving files to the root) and (a+b+c) does not work?

Why don't you add the current relative folder in front of the filename? (as done when only 1 file is renamed or MRT is used.) Are there any technical problems? I tried this manually and it works fine.
I agree that it is strange but maybe there are some problems. Shift+F6 does inplace rename/move while MRT's main task is rename only so some users may expect or use exactly this behaviour. As for me, even simple warning would be enough.
romulous wrote:
ghisler(Author) wrote:I don't understand, TC 7.56 and also all older versions behave the same way - nothing was changed...
Damn! So I uninstalled v8 and went back to 7.56a for nothing???? :( :( :( :(
BTW it is not necessary to reinstall, you may just copy TOTALCMD.exe.
Post Reply