Page 1 of 1

Focus on file after renaming via

Posted: 2024-12-14, 12:08 UTC
by TvE
I have received lot's of good help here viewtopic.php?p=450989 and have a shortcut that prepends my file with a timestamp - (probably one of my most used actions in TCM).

Now remains only one issue: The file I am renaming is not kept in focus after the renaming.

Initial listing

Code: Select all

2024-12-24_2359 file already present.jpg
New File.jpg <- Focus on this new file as it needs to get a timestamp prepended
After Renaming (via my new great CTRL+ALT+T shortcut)

Code: Select all

2024-12-14_1302 New File.jpg
2024-12-24_2359 file already present.jpg <- Focus
Focus is still on the second file in the list, but the renamed file has moved due to the new name hence another file is now in focus and I need to manually select the renamed file in order to perform further actions to it

I'm not sure if this is to be considered a bug or a missing feature, but it sure would be great to figure out how to avoid this behavior.

Re: Focus on file after renaming via

Posted: 2024-12-14, 13:23 UTC
by petermad
2TvE

You don't show us which command you have assigned to your CTRL+ALT+T shortcut - but this command keeps the cursor on the file after prepending the date:

Code: Select all

cmd=cm_RenMov
param=/GH0T="%|$DATE:Y-M-D_hm| %Q%N"
or as a button:

Code: Select all

TOTALCMD#BAR#DATA
cm_RenMov
/GH0T="%|$DATE:Y-M-D_hm| %Q%N"
WCMICONS.DLL,32
Prepend name of the file under the cursor with current date and time

0
-1
To make the button:
1. Mark the text in the box here above (click SELECT ALL).
2. Copy it to the ClipBoard (press Ctrl+C).
3. Right click on TC's buttonbar and choose "Paste".

Re: Focus on file after renaming via

Posted: 2024-12-14, 17:02 UTC
by sa16
petermad wrote:You don't show us which command you have assigned to your CTRL+ALT+T shortcut
Apparently MULTIRENAME is used.

Re: Focus on file after renaming via

Posted: 2024-12-18, 11:31 UTC
by TvE
@sa16
Correct - MULTIRENAME is used

@petermad
Awsome - I have now implemented your command instead, and no longer have to look at the multirename GUI - this is a much better (and >10x faster) way to obtain my goal

Thank you!

Re: Focus on file after renaming via

Posted: 2024-12-18, 12:07 UTC
by sa16
This button can be used in TC11.50, including for several files, however, if there are more than 1 files, then there may be another file under the cursor after renaming:

Code: Select all

TOTALCMD#BAR#DATA
cm_RenMov /GT="%$DATE:Y-M-D_hm% **.*"

WCMICONS.DLL,32