An example:
I wished, there was an option to sync directory changing operations of both windows. Imagine, there were two folder structures, that I want to compare or synchronize by copying some of their files in different subfolders from one to each other:
Code: Select all
d:\projects\projectxy
+ abc
+ cde
+ def
+ ghi
Code: Select all
e:\development\0901\projectxy
+ abc
+ cde
+ def
+ ghi
BUT
This example is much to particular, to suggest it as a basic feature. So the better option would be, to have a feature to create hooks, eg. - in this case - for the operations onChangeDirUp and onChangeDirDown.
Every time this event would happen, TC would look for Actions that are linked to this event.
According to the principle at settings dialog for button bar commands there could be the path / parameter - input, to set up external batchfiles, but comands like cm_GoToRoot as well.
In my case I would check the drives and directories of source and target window, if they have the same path relative to a defined root path. Lets say, the Action onChangeDirDown would be triggered before dir-changing but the command would be executed after the changing. Then you could execute cd.. to undo dir changing into the subfolder, if no equivalent folder exists in the target window, otherwise you would set the target window path to the new path part relative to its drive. Are you still with me?

Maybe a easier example:
Imagine, there was an hook "onChangeDrive". You could create a Batchfile, that checks the source drive letter. If it is T:, the Batch starts a command to set the target window into tree view mode.
Or:
onConnectFTP perform: change path of the target window to d:\projects\upload
Or:
onExitTotalCommander perform: trigger my versioning control system to commit files in a given path
Or:
onZipDone perform: create a hash of this zip an write it into a text file.
So here's my request:
It would be nice to have an Option to define Commands/Scripts/Batches on defined events. Events might be changing directories/drives, open/close connections/application ...
Then, there would be an action input for TC-commands or external executables, an parameter input that supports the known things like %T for target window and a setting, that says, when the batch is called (before/after event).
Simple, is'nt it?