Latest post of the previous page:
Вероятно не все ещё заметили, но теперь возможности контент-плагинов доступны и в luamacro, т.е. плагин не нужен, достаточно макроса.А вот такой вариант можно в обоих случая использовать:
Code: Select all
-- https://forum.farmanager.com/viewtopic.php?p=132337#p132337
local c0 = {
GetContentFields = function(ColNames)
for i,v in ipairs(ColNames) do
if v:lower()=="link" then return true end
end
end;
GetContentData = function(FilePath,ColNames)
local data = {}
for i,v in ipairs(ColNames) do
if v:lower()=="link" then
local attr = win.GetFileAttr(FilePath)
if attr and attr:find"e" then
data[i] = "→"..(far.GetReparsePointInfo(FilePath) or "(data not available)")
end
end
end
return next(data) and data
end
}
if not Far then
for k,v in pairs(c0) do export[k] = v; end
elseif ContentColumns then
ContentColumns(c0)
end
Спасибо за исправление.