ecdd4cdca2
New script for opening folders in the other pane
15 lines
392 B
Lua
15 lines
392 B
Lua
local params = {...}
|
|
|
|
local sn = debug.getinfo(1).source
|
|
if string.sub(sn, 1, 1) == '@' then sn = string.sub(sn, 2, -1) end
|
|
sn = SysUtils.ExtractFileName(sn)
|
|
|
|
if #params ~= 1 then
|
|
Dialogs.MessageBox('Check the number of parameters!\nRequires only one.', sn, 0x0030)
|
|
return
|
|
end
|
|
|
|
DC.ExecuteCommand('cm_FocusSwap')
|
|
DC.ExecuteCommand('cm_NewTab')
|
|
DC.ExecuteCommand('cm_ChangeDir', params[1])
|