add Double Commander scripts

New script for opening folders in the other pane
This commit is contained in:
2026-06-05 10:37:42 +02:00
parent 7342d94520
commit ecdd4cdca2
@@ -0,0 +1,14 @@
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])