Open current selected directory on the other panel

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
azatoth
Posts: 2
Joined: Wed 06 Mar, 2013 15:27

TotalCMD Target=Source feature in FAR

Post by azatoth »

Hi,

I like to ask you how can I replicate Total Commander's Target=Source feature in FAR?
What is does:
- if I press Ctrl+Right in the left panel it sets (or sends) the same path as in the left panel
- if I press Ctrl+Left in the right panel it sets (or sends) the same path as in the right panel

Or this feature is already exists in FAR?

Anyway I'm changing from TotalCMD to FAR and I like it!

Thanks in advance:
Aza

User avatar
HaRT
Moderator
Posts: 9230
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 91 times
Been thanked: 195 times

Re: TotalCMD Target=Source feature in FAR

Post by HaRT »

Look for “Same folder” in the settings dialog of the FAR Commands standard plugin.
Although a more precise name would be “Same item” — you can adjust it in its LNG file.
Фар есть инструмент, а не нянька. © 2009 DrKnS

azatoth
Posts: 2
Joined: Wed 06 Mar, 2013 15:27

Re: TotalCMD Target=Source feature in FAR

Post by azatoth »

Oh yes, thanks!

This is what I wanted.

Now I love FAR even more!

crile
Posts: 2
Joined: Thu 28 Mar, 2013 15:22

Open current selected directory on the other panel

Post by crile »

Hi,

All is in the title, how to open the selected directory in the other panel ?

Thanks

2useven10
Posts: 4000
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 5 times
Been thanked: 179 times

Open current selected directory on the other panel

Post by 2useven10 »

macros like this one (far3 only)
  1. Macro {
  2.   area="Shell"; key="CtrlShiftBackSlash"; description="Current Folder --> Passive Panel";
  3.   action = function()
  4.     if APanel.Folder then
  5.       local p = panel.GetPanelDirectory(nil, 1)
  6.       local n = p.Name
  7.       local t = #> 0 and n:sub(-1) or ''
  8.       local s = ''
  9.       if #> 0 and t ~= '/' and t ~= '\\' then
  10.         s = n:sub(1,1) == '/' and '/' or '\\'
  11.       end
  12.       p.Name = p.Name .. s .. APanel.Current
  13.       panel.SetPanelDirectory(nil, 0, p)
  14.     end
  15.   end;
  16. } 
Last edited by 2useven10 on Sat 21 Dec, 2013 20:57, edited 2 times in total.

Игорь Юдинцев
Posts: 725
Joined: Sun 03 Apr, 2005 22:00
Location: Казань
Been thanked: 1 time

Re: Open current selected directory on the other panel

Post by Игорь Юдинцев »


crile
Posts: 2
Joined: Thu 28 Mar, 2013 15:22

Re: Open current selected directory on the other panel

Post by crile »

Thanks it works pretty well.
Where a can find a documentation for the macro language ?

2useven10
Posts: 4000
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 5 times
Been thanked: 179 times

Re: Open current selected directory on the other panel

Post by 2useven10 »

crile wrote:Thanks it works pretty well.
Where a can find a documentation for the macro language ?
Some documentation you can find in %FARHOME%\Encyclopedia\... or here
But unfortunatelly somewhere it is not full and not up to date and mostly in russian.

User avatar
John Doe
Бюрократ
Posts: 12597
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 34 times
Been thanked: 259 times

Open current selected directory on the other panel

Post by John Doe »

2useven10 wrote:macros like this one
Macro can be even simpler:
  1. local ACTIVE,PASSIVE = 1,0
  2. Macro {
  3.   description="Current Folder --> Passive Panel";
  4.   area="Shell"; key="CtrlAltShiftBackSlash"; flags="NoFiles";
  5.   action=function()
  6.     local dir = panel.GetPanelDirectory(nil,ACTIVE)
  7.     panel.SetPanelDirectory(nil,PASSIVE,dir)
  8.     dir.Name=APanel.Current
  9.     panel.SetPanelDirectory(nil,PASSIVE,dir)
  10.   end;
  11. }
azatoth wrote:I like to ask you how can I replicate Total Commander's Target=Source feature in FAR?
What is does:
- if I press Ctrl+Right in the left panel it sets (or sends) the same path as in the left panel
- if I press Ctrl+Left in the right panel it sets (or sends) the same path as in the right panel
Here: http://forum.farmanager.com/viewtopic.p ... 28#p120028

pp
Posts: 35
Joined: Wed 24 Jan, 2007 11:39
Location: Česká republika
Has thanked: 4 times
Contact:

Re: Open current selected directory on the other panel

Post by pp »

And the way without macro: if left panel is active with dir C:\Windows\Temp and you want to open the same dir in the right panel - simply press "Alt+F2 C".

old_gregg
Posts: 14
Joined: Fri 01 May, 2015 16:04
Has thanked: 1 time
Been thanked: 1 time

Change passive panel to same directory as active panel?

Post by old_gregg »

Is there a hotkey to chdir the passive panel to the same directory as the active panel?

old_gregg
Posts: 14
Joined: Fri 01 May, 2015 16:04
Has thanked: 1 time
Been thanked: 1 time

Change passive panel to same directory as active panel?

Post by old_gregg »

Ah, I found it in the similar topics once I made the post: Alt+F2 C

Post Reply

Return to “Support and Troubleshooting”