Page 1 of 1

Adding an option to "Synchronize Directories"

Posted: 2012-11-04, 09:22 UTC
by yosi_tz
Hello Total Commander Team and users

Again & again I find myself in a need to the following option, now missing:
In the fantastic "Synchronize Directories", when you get the results, and right click the mouse, the following options need to be added:

Go to right file
Go to left file
Go to left & right files

The same way as in Search results, often I get the Compare table and, as a result, wish to return back, not to the origin directories, but to other dirs or files I got in the compare table/

Hope you consider my suggestion and add it very soon

Thanks a lot
Yosi shatz
Registered User

Posted: 2012-12-13, 02:29 UTC
by MarcinW
Yes, this would be useful.

Posted: 2012-12-18, 21:02 UTC
by Lope
I agree.

Posted: 2012-12-18, 23:17 UTC
by petermad
Support++

Posted: 2012-12-19, 05:24 UTC
by Samuel
I use an ugly workaround with ahk for this, so you got my support too.

Posted: 2013-10-30, 06:43 UTC
by ackuxacky
Dear Samuel,

what is your solution, pls?

Cheers,
Samuel wrote:I use an ugly workaround with ahk for this, so you got my support too.

Posted: 2013-10-30, 06:45 UTC
by ackuxacky
I totally agree.

What else can a user do, if they find a specific file which they want to open? There is not much to do, just to remember the filename and to search for it after closing the SyncDir dialogue.

A double-click opens the file in the native (or pre-selected) editor (what about DOCX or PDF?).
CTRL-C copies only the filename and displayed properties.

Cheers,

Posted: 2013-10-30, 18:17 UTC
by Samuel
ackuxacky wrote:
Samuel wrote:I use an ugly workaround with ahk for this, so you got my support too.
Dear Samuel,

what is your solution, pls?

Cheers,
This is what I am using.

Code: Select all

#IfWinActive, ahk_class TCmpForm
+Left::
    Send, {F3}
    File := GetListerPath("5", "1")
    run %File%
return
+Right::
    Send, +{F3}
    File := GetListerPath("5", "1")
    run %File%
return
+Up::
    Send, {F3}
    File1 := GetListerPath("5", "1")
    Send, +{F3}
    File2 := GetListerPath("5", "1")
    run C:\totalcmd\totalcmd.exe /T /O /L="%File1%"
    run C:\totalcmd\totalcmd.exe /T /O /R="%File2%"
return
#IfWinActive


GetListerPath(Timeout, CloseLister)
{
    WinWaitActive, ahk_class TLister,, %Timeout%
    IfWinNotActive, ahk_class TLister
        return

    WinGetActiveTitle, Title
    if(CloseLister == "1") {
        WinClose, %Title%
    }
    pos := (InStr(Title, "[", false, 1) + 1)
    ;Folder := SubStr(Title, pos, (InStr(Title, "", false, 0) + 1) - pos)
    File :=	SubStr(Title, pos, StrLen(Title) - pos)
    return File
}