Creating menu command - open twee folders in different panels

You have encountered a problem using Far Manager? Here you can get help.
Post Reply
Tuvok
Posts: 18
Joined: Thu 10 Jul, 2014 08:11

Creating menu command - open twee folders in different panels

Post by Tuvok » Thu 12 Jul, 2018 06:32

Hello,

I want to create a menu command in my UserMenu that opens two folders, one in source and one in target panels.
When I cd \\abcdefg than the folder is openend in the active panel. But I want to open also a folder in de not active panel at the same time.

I am wondering how to do this.

Shmuel
Posts: 5598
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 21 times
Been thanked: 186 times

Creating menu command - open twee folders in different panels

Post by Shmuel » Fri 13 Jul, 2018 05:53

The required menu command could look like that:

Code: Select all

lua: if PPanel.Left then Keys("Tab") end -- if we want the source to be on the left side
lua: Panel.SetPath(0, [[C:\Dir1\Dir2]]) -- source directory
lua: Panel.SetPath(1, [[E:\Dir3\Dir4]]) -- target directory

Tuvok
Posts: 18
Joined: Thu 10 Jul, 2014 08:11

Creating menu command - open twee folders in different panels

Post by Tuvok » Fri 31 Aug, 2018 09:40

Thank you, this worked for me

Post Reply

Return to “Support and Troubleshooting”