Page 1 of 1

Creating menu command - open twee folders in different panels

Posted: Thu 12 Jul, 2018 06:32
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.

Creating menu command - open twee folders in different panels

Posted: Fri 13 Jul, 2018 05:53
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

Creating menu command - open twee folders in different panels

Posted: Fri 31 Aug, 2018 09:40
by Tuvok
Thank you, this worked for me