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