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 »

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: 6819
Joined: Thu 23 Mar, 2006 21:36
Location: Israel
Has thanked: 41 times
Been thanked: 528 times

Creating menu command - open twee folders in different panels

Post by Shmuel »

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 »

Thank you, this worked for me
Post Reply

Return to “Support and Troubleshooting”