Multi Commander > Feature Requests and Suggestions

change paths synchronously on both sides

(1/1)

mario_lorenz:
Hi Forum,

what I need is to change the paths on both sides in sync. I need this the feature e.g. for an FTP comparison.

Is it possible?

Regards,

Mario

Mathias (Author):
I'm planing something that.  However it is not as easy as one might think because a lot of things can go wrong and the question is how to handle that..

However... right now you can do it using Multi-Script..


--- Code: ---@var $foldername = GetSourceFocusName();

@var $srcPath = GetSourcePath();
@var $trgPath = GetTargetPath();

$srcPath = $srcPath ^ $foldername;
$trgPath = $trgPath ^ $foldername;

MC.Explorer.Goto SOURCE={$srcPath} TARGET={$trgPath}

--- End code ---
Then assign that command to a shortcut key. and if you are standing on a folder named "My Folder" in the source view. and run the command it will try to enter a "My Folder" folder in both the target and source panel.


Mathias (Author):
If you want to make sure that both the source and target folder both exists before it tries to enter it you do


--- Quote ---@var $foldername = GetSourceFocusName();

@var $srcPath = GetSourcePath();
@var $trgPath = GetTargetPath();

$srcPath = $srcPath ^ $foldername;
$trgPath = $trgPath ^ $foldername;

if( IsFolder( $srcPath ) )
{
  if(IsFolder( $trgPath) )
  {
    MC.Explorer.Goto SOURCE={$srcPath} TARGET={$trgPath}
  }
}


--- End quote ---

mario_lorenz:
Thanks a lot! The script and the hotkey works well.

I found and use this feature in Filezilla. There you can press a button and all directory changes on the one hand be run simultaneously on the other side. Whether by keyboard or mouse. If you´ll enter a directory that not exist on the other side, filezilla ask you to unlock the button. Thats a very nice feature for directory comparison with your eyes.

Maybe you will set this feature in a future release.

Greatings, Mario

Navigation

[0] Message Index

Go to full version