[TC 11.57] Handling of [X] placeholder when clipboard is empty

Bug reports will be moved here when the described bug has been fixed

Moderators: petermad, Stefan2, Hacker

User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *white »

12.05.26 Fixed: New file/folder dialog, multi-rename tool: Placeholder [X] to insert string from clipboard now creates an error when the clipboard contains a zero length string (32/64)
2.05.26 Added: New file/folder dialog, multi-rename tool: New placeholder [X0]: Same as [X], but inserts empty string when the clipboard is empty or doesn't contain any text (32/64)
Tested OK with TC 11.57a pre1 32-bit and 64bit.

Error in the changelog: " 2.05.26"
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *ghisler(Author) »

Sorry, it's just a copy and paste error to the mail. It's correct in the actual changelog.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *white »

Not sure if you realized, but the introduction of placeholder [X0] introduced compatibility issue.

Suppose a user used this filename mask in the multi-rename tool:

Code: Select all

Number [X01-3]
If the number 2 is on the clipboard, this produces "Number 002" in TC 11.57.
If the number 2 is on the clipboard, this produces "Number 2" in TC 11.57a.

This functionality in TC 11.57 no longer exists in TC 11.57a. You can only use [X0] now with leading zero padding (e.g. Number [X001-3]).
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *ghisler(Author) »

It doesn't need to be a zero, I could use any other character. How about [X+], would that clash also with something?
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *white »

ghisler(Author) wrote: 2026-05-15, 07:39 UTC How about [X+], would that clash also with something?
I think [X+] would not clash with anything.
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *white »

15.05.26 Added: New file/folder dialog, multi-rename tool: New placeholder [X+]: Same as [X], but inserts empty string when the clipboard is empty or doesn't contain any text (32/64)
Tested OK using TC 11.57a pre2 32-bit and 64-bit.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 53145
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *ghisler(Author) »

Please re-check with Total Commander 11.57a RC1!
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 6941
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC 11.57] Handling of [X] placeholder when clipboard is empty

Post by *white »

12.05.26 Fixed: New file/folder dialog, multi-rename tool: Placeholder [X] to insert string from clipboard now creates an error when the clipboard contains a zero length string (32/64)
15.05.26 Added: New file/folder dialog, multi-rename tool: New placeholder [X+]: Same as [X], but inserts empty string when the clipboard is empty or doesn't contain any text (32/64)
Tested OK using TC 11.57a rc1 32-bit and 64-bit.

Moderator message from: white » 2026-05-20, 13:58 UTC

Moved topic
» from TC11.x bug reports (English) to TC Fixed bugs
Post Reply