New simple feature: Single click current tab duplication to other pane directly

Started by Hgetis, January 20, 2021, 10:54:35

Previous topic - Next topic

Hgetis

Greetings to all.
I found via search this topic but I couldn't post: http://forum.multicommander.com/forum/index.php/topic,3694.0.html
So I open this new thread, requesting the same feature.
To be more specific, I used to work on Directory Opus, and I find Multi Commander quite similar so I became a fan.
However, a very useful feature that speed ups multiply productivity is to be able via a single interface button (for example in the right corner of each pane) or/and via a keyboard shortcut, to "send" the open folder/path on the current pane to the other pane (similarily like duplicating the tab and moving it in the other pane, but this requires multiple clicks reducing productivity).

I am requesting though, this simple feature of single click current tab duplication to other pane directly (looks more like a "macro command" of tab dublication+moving to opposite pane).

Is it possible to see that shortly in an program update??

Thank you.

PS. You can merge this thread to the aforementioned thread if you want.

AlanJB

This can be done with a User Defined MultiScript Command:  I call mine "Copy Left Tab Right Side" & assigned it to hotkey Ctrl+Right.

MC.SetActivePanel PANEL=LEFT;
@var $LeftFocus = StrReplace(GetSourceFocusPath(),"..","");
@var $LeftPath = PathGetPathPart($LeftFocus);

if ( IsFolder($LeftFocus) == 1 )
{
  $LeftPath = $LeftFocus;
}
MC.Explorer.NewBrowser PATH={$LeftPath} SIDE=RIGHT;
MC.SetActivePanel PANEL=RIGHT;


You can do a similar script for "Copy Right Tab Left Side" with:

MC.SetActivePanel PANEL=RIGHT;
@var $RightFocus = StrReplace(GetSourceFocusPath(),"..","");
@var $RightPath = PathGetPathPart($RightFocus);

if ( IsFolder($RightFocus) == 1 )
{
  $RightPath = $RightFocus;
}
MC.Explorer.NewBrowser PATH={$RightPath} SIDE=LEFT;
MC.SetActivePanel PANEL=LEFT;

Hgetis

Quote from: AlanJB on January 20, 2021, 11:51:16
This can be done with a User Defined MultiScript Command:  I call mine "Copy Left Tab Right Side" & assigned it to hotkey Ctrl+Right.

MC.SetActivePanel PANEL=LEFT;
@var $LeftFocus = StrReplace(GetSourceFocusPath(),"..","");
@var $LeftPath = PathGetPathPart($LeftFocus);

if ( IsFolder($LeftFocus) == 1 )
{
  $LeftPath = $LeftFocus;
}
MC.Explorer.NewBrowser PATH={$LeftPath} SIDE=RIGHT;
MC.SetActivePanel PANEL=RIGHT;


You can do a similar script for "Copy Right Tab Left Side" with:

MC.SetActivePanel PANEL=RIGHT;
@var $RightFocus = StrReplace(GetSourceFocusPath(),"..","");
@var $RightPath = PathGetPathPart($RightFocus);

if ( IsFolder($RightFocus) == 1 )
{
  $RightPath = $RightFocus;
}
MC.Explorer.NewBrowser PATH={$RightPath} SIDE=LEFT;
MC.SetActivePanel PANEL=LEFT;


I tested it, seems to work like a charm!
Thank you!


AlanJB

Quote from: Hgetis on January 20, 2021, 12:30:27
Quote from: AlanJB on January 20, 2021, 11:51:16
This can be done with a User Defined MultiScript Command:  I call mine "Copy Left Tab Right Side" & assigned it to hotkey Ctrl+Right.

MC.SetActivePanel PANEL=LEFT;
@var $LeftFocus = StrReplace(GetSourceFocusPath(),"..","");
@var $LeftPath = PathGetPathPart($LeftFocus);

if ( IsFolder($LeftFocus) == 1 )
{
  $LeftPath = $LeftFocus;
}
MC.Explorer.NewBrowser PATH={$LeftPath} SIDE=RIGHT;
MC.SetActivePanel PANEL=RIGHT;


You can do a similar script for "Copy Right Tab Left Side" with:

MC.SetActivePanel PANEL=RIGHT;
@var $RightFocus = StrReplace(GetSourceFocusPath(),"..","");
@var $RightPath = PathGetPathPart($RightFocus);

if ( IsFolder($RightFocus) == 1 )
{
  $RightPath = $RightFocus;
}
MC.Explorer.NewBrowser PATH={$RightPath} SIDE=LEFT;
MC.SetActivePanel PANEL=LEFT;


I tested it, seems to work like a charm!
Thank you!

You're welcome  :)