Code: Select all
Macro {
description = 'Jump to the junction/symlink target';
area = 'Shell'; key='CtrlNum3';
condition = function()
local real = not APanel.Plugin or band( APanel.OPIFlags, far.Flags.OPIF_REALNAMES ) ~= 0
local isRP = band( Panel.FAttr( 0, APanel.Current ), 1024 ) ~= 0 -- reparse point?
return real and isRP
end;
action = function()
local target = far.GetReparsePointInfo( APanel.Current )
local dirPath, baseName = mf.fsplit( target, 1+2 ), mf.fsplit( target, 4+8 )
Panel.SetPath( 0, dirPath, baseName )
end
}