Renammer treats dots on FOLDER names, as indicarion of exten

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
kwanbis
Junior Member
Junior Member
Posts: 67
Joined: 2006-11-06, 21:30 UTC

Renammer treats dots on FOLDER names, as indicarion of exten

Post by *kwanbis »

But there are no file extensions on folder names.

Try with any folder name, for example, ABC.xyz, renammer would make it Abc.xyz, instead of Abc.Xyz.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50532
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

This has been discussed before. I prefer to keep it as it is now, because changing it would break many saved rename schemes.
Author of Total Commander
https://www.ghisler.com
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

ghisler(Author), maybe you can make [F] working in extension field so one could use [F][E]? Or maybe another INI option?
User avatar
white
Power Member
Power Member
Posts: 5807
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:ghisler(Author), maybe you can make [F] working in extension field so one could use [F][E]? ...
It works already! (Remember to set the Upper/lowercase field to "Unchanged".)
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

white, you're right, it works if Upper/lowercase field is set to "Unchanged", but why it doesn't work if Upper/lowercase field is set to "First of each word uppercase"?

kwanbis, here a solution for you: you can use name template like [F][N] ([F] applies "First of each word uppercase" mode to string after it - press F1 to read more) and extension template like [F][E] with option Upper/lowercase set to "Unchanged", all will work. :D
User avatar
white
Power Member
Power Member
Posts: 5807
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Post by *white »

MVV wrote:white, you're right, it works if Upper/lowercase field is set to "Unchanged", but why it doesn't work if Upper/lowercase field is set to "First of each word uppercase"?
Because the function corresponding with the Upper/lowercase field is executed after the function corresponding with the file name/ext mask.
MVV wrote:kwanbis, here a solution for you: you can use name template like [F][N] ([F] applies "First of each word uppercase" mode to string after it - press F1 to read more) and extension template like [F][E] with option Upper/lowercase set to "Unchanged", all will work. :D
It's not a solution, but a workaround because kwanbis expects extensions in folder names to be treated as part of the folder name.

BTW. The name mask "[F][N]" also changes capitalization of the extension.
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

white wrote:Because the function corresponding with the Upper/lowercase field is executed after the function corresponding with the file name/ext mask.
You're right, I've missed that detail.
white wrote:It's not a solution, but a workaround because kwanbis expects extensions in folder names to be treated as part of the folder name.
Agree, but it works anyway. :)
white wrote:BTW. The name mask "[F][N]" also changes capitalization of the extension.
That's really funny. :D
User avatar
petermad
Power Member
Power Member
Posts: 16032
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

because kwanbis expects extensions in folder names to be treated as part of the folder name
Before dots were even alloved in folder names (old DOS, Windows 3) you could still put one dot in a folder name, because it was then considered an extension.

So to me, one dot in a folders name makes it a name with an extension (but I also never use spaces or dots in file names).
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Post Reply