Feature Request: Option to set rename pattern
Moderators: Hacker, petermad, Stefan2, white
- robinsiebler
- Senior Member
- Posts: 460
- Joined: 2003-03-05, 21:04 UTC
Feature Request: Option to set rename pattern
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
Personal License #13949
------------------------------
"Bother", said Pooh, as he deleted Windows
Better soon ?
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
Best regards,
Claude
Clo

- 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


Claude
Clo
#31505 Traducteur Français de T•C French translator Aide en Français Tutoriels Français English Tutorials
- robinsiebler
- Senior Member
- Posts: 460
- Joined: 2003-03-05, 21:04 UTC
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, ...).
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, ...).
You may use the Multi rename tool with
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
Code: Select all
Rename mask: [N]
Extension:[E]
Search for:\((\d+)\)
Replace with:-0$1
RegEx is checked, subst is unchecked
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
completely foolproof is to underestimate the ingenuity of complete fools."
Douglas Adams
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).
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