Open current selected directory on the other panel

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

TotalCMD Target=Source feature in FAR

Postby azatoth » Wed 06 Mar, 2013 15:33

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: 7880
Joined: Tue 30 Aug, 2005 17:21
Location: Санкт-Петербург
Has thanked: 62 times
Been thanked: 93 times

Re: TotalCMD Target=Source feature in FAR

Postby HaRT » Wed 06 Mar, 2013 15:40

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

Postby azatoth » Wed 06 Mar, 2013 16:06

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

Postby crile » Thu 28 Mar, 2013 15:26

Hi,

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

Thanks

2useven10
Posts: 2833
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 72 times

Open current selected directory on the other panel

Postby 2useven10 » Thu 28 Mar, 2013 17:25

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

Postby Игорь Юдинцев » Thu 28 Mar, 2013 18:19

SameFolder+ plugin: SameFolder+

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

Re: Open current selected directory on the other panel

Postby crile » Fri 29 Mar, 2013 08:31

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

2useven10
Posts: 2833
Joined: Mon 07 Sep, 2009 10:40
Has thanked: 2 times
Been thanked: 72 times

Re: Open current selected directory on the other panel

Postby 2useven10 » Fri 29 Mar, 2013 15:19

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: 11028
Joined: Wed 27 Apr, 2005 20:42
Has thanked: 9 times
Been thanked: 61 times

Open current selected directory on the other panel

Postby John Doe » Tue 24 Jun, 2014 20:24

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
Contact:

Re: Open current selected directory on the other panel

Postby pp » Thu 26 Jun, 2014 07:36

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: 9
Joined: Fri 01 May, 2015 16:04
Has thanked: 1 time
Been thanked: 1 time

Change passive panel to same directory as active panel?

Postby old_gregg » Tue 19 May, 2015 18:56

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

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

Change passive panel to same directory as active panel?

Postby old_gregg » Tue 19 May, 2015 18:59

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


Return to “Support and Troubleshooting”

Who is online

Users browsing this forum: No registered users and 2 guests