Quick rename (Shift-F6) used with .* can discard some or all of the file extension

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
pjotrb
Junior Member
Junior Member
Posts: 46
Joined: 2006-11-02, 13:11 UTC
Location: The Netherlands

Quick rename (Shift-F6) used with .* can discard some or all of the file extension

Post by *pjotrb »

Using TotalCmd (x64) 10.00

Quick rename may discard part or all of the file extension when using it with .* at the end.

Here are some scenarios. The first works fine; the rest loses some or all of the zip extension.
All were done with the option "Select only the file name when renaming (not the extension)" switched OFF. I believe you can hit Shift-F6 twice to get the same result (initially selecting all of the filename) if you have that option switched ON. Or it may not even matter, as long as you type what is shown below.

tool.zip -> Shift-F6 -> tool-v1.* + Enter -> tool-v1.zip = OK
tool.zip -> Shift-F6 -> tool-v1.2.* + Enter -> tool-v1.2.p = not OK
tool.zip -> Shift-F6 -> tool-v1.23.* + Enter -> tool-v1.23 = not OK
tool.zip -> Shift-F6 -> tool-v1.2.3.* + Enter -> tool-v1.2.3 = not OK

It seems that it tries to do some kind of "smart replacement" starting from the first dot in the filename, but I would expect it to work from the last dot in the filename, which is where the extension starts.
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Quick rename (Shift-F6) used with .* can discard some or all of the file extension

Post by *Hacker »

pjotrb,
TC just maintains compatibility to cmd.exe which exhibits the same behavior.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48079
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: Quick rename (Shift-F6) used with .* can discard some or all of the file extension

Post by *ghisler(Author) »

Yes, the * takes characters from that position in the original extension until the end. It doesn't allow to insert characters in the name.

For example, in this string:
tool.zip -> Shift-F6 -> tool-v1.2.*
The old extension is .zip
The new extension is .2.*
So the * only covers the p from .zip.
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13064
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Re: Quick rename (Shift-F6) used with .* can discard some or all of the file extension

Post by *Hacker »

Moderator message from: "Hacker"

Moved to the English forum.
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
Post Reply