Feature Request: Option to set rename pattern

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Feature Request: Option to set rename pattern

Post by *robinsiebler »

If you choose the option to rename duplicate file names when copying/moving, TC automatically renames the files file(2), file(3), etc. However, I would like to be able to specify how the files are renamed. For instance, file-01, file-02, etc.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

Better soon ?

Post by *Clo »

2robinsiebler
:) Hello !
- I guess that you wish to get especially a "natural" sorting in the file-lists then ?
- It's quite possible that a better sorting for names having order-numbers (and national characters) shall come soon ;)

:mrgreen: Best regards,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
robinsiebler
Senior Member
Senior Member
Posts: 460
Joined: 2003-03-05, 21:04 UTC

Post by *robinsiebler »

No, I just hate () in file names.
Robin L. Siebler
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
jb
Senior Member
Senior Member
Posts: 412
Joined: 2003-02-09, 22:56 UTC
Location: Switzerland

Post by *jb »

I agree.
Recently I wrote a JScript function with the following signature:

function AutoRename(i_strPathName, i_strIndexPrefix, i_nIndexWidth, i_strIndexPostfix)

EXAMPLE CALLS:
AutoRename("MyFile.txt", "(", 1, ")")
leads to "MyFile(1).txt", "MyFile(2).txt", ... (TC 6.03a)

AutoRename("MyFile.txt", "-", 2)
leads to "MyFile-01.txt", "MyFile-02.txt", ... (preferred by robinsiebler)

AutoRename("MyFile.txt", "-OLD", 3)
leads to "MyFile-OLD001.txt", "MyFile-OLD002.txt", ... (preferred by jb)


Tranlated to TC I suggest the following keys for Wincmd.ini
AutoRenameIndexPrefix with default value "("
AutoRenameIndexWidth with default value 1
AutoRenameIndexPostfix with default value ")"

Also the location of the index might be configurable (after base name, after extension, ...).
User avatar
Sheepdog
Power Member
Power Member
Posts: 5150
Joined: 2003-12-18, 21:44 UTC
Location: Berlin, Germany
Contact:

Post by *Sheepdog »

You may use the Multi rename tool with

Code: Select all

Rename mask: [N]
Extension:[E]
Search for:\((\d+)\)
Replace with:-0$1
RegEx is checked, subst is unchecked
Just as workaround.

I think too it would be nice if you could define the rename template.
That'll make it possible to automatically rename files to e.g. :
photo_20-12-04a
photo_20-12-04b
photo_20-12-04c

or anything.

sheepdog
"A common mistake that people make when trying to design something
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
User avatar
JohnFredC
Power Member
Power Member
Posts: 886
Joined: 2003-03-14, 13:37 UTC
Location: Sarasota Florida

Post by *JohnFredC »

Perhaps the request is really one for a combo box in the copy/move dialog that shows the recently used renaming patterns from the multirename tool.

In addition, I conceive of a button on the copy/move dialog that opens the multi-rename tool so that a rename pattern could be constructed "on the fly". The list of files that would appear in the rename tool would be the list of duplicates found in the pending move/copy operation.

Closing the multi-rename dialog would post the rename template to the combo in the move/copy dialog. TC would apply the template to the duplicates when the copy/move was actually executed.

Not being in favor of too many additional dialogs (and clicks), however, I personally would prefer a more elaborate move/copy dialog that included portions of the multirename tool in its body (instead of having to open, then close, the multi-rename tool during the move/copy).
Licensed, Mouse-Centric, moving (slowly) toward Touch-centric
Post Reply