7JAODGVLU6GEMEJTJL34QMYOCKWPFX22A4UH5SLSDGSIVIRETO7QC
HD2HHK5EGCPCAV4CK737F554CYCF6HKDLJZFLRU2TYV2F554WITAC
F4D7UKSAHDIKOASTFGRUBRHIZBKTWREPFDK2AMDOW7WDDSGSDCEQC
VE7YQMQYCRL77YOFEXFXJXL7VPE6FIEBBJ6KLFZHDWDAKOLMLOUQC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
CVK6T5OZZPWGWZ4E2QQZKCOWZPC25EDWXZWLLTPBDDRGEQGADKNAC
5O356ZWY6DCM3Y6VFZPYQY5AIHIN6JGZDGLXU5DL6LWTFNDDFPFQC
PJNQY5CDYYWKFUFK3OFXU7UZCFTTMBSYDMEKIY7LUZIB5XFRTQQQC
5HOB5Y6ZDNJ42XMHQ7YWZTUCK4DAJRPYRECDWTKFSXZWQ4ZMMSNAC
A4P533SA6BUSROFCLHJTBYKU6JJWLJD45OKWWL5NJ2XMO2TZC4YAC
6SEECG7ACIN6ZK72ED3DKYZKBNM5M5OMTD4M6HLNMAH376NYNAEAC
ZU3HJ6NH26LFY2NWRCCRMXECNEPVR25OJNOFEK5XJ3KYFJUCKQXAC
XV52L22IDM4Y22GLHJOPWWCEXRGJVUJWXDHSFS2UQNX66CE55VJQC
elseif string.match(column_name, '%S+ from %S+') then
local rel, start_id = string.match(column_name, '(%S+) from (%S+)')
initialize_cache_if_necessary(start_id)
local column = unroll_column(start_id, rel)
if column == nil then
-- something has changed from underneath us
-- unroll_column printed out an error
else
-- helpers that create columns you have to explicitly insert
local column = {name=column_name}
populate_column(column)
if #column == 0 then
-- Something has changed from underneath us, likely between restarts;
-- assume we already printed out an error.
elseif string.match(column_name, 'neighbors of %S+') then
local start_id = string.match(column_name, 'neighbors of (%S+)')
end
end
function populate_column(column)
if string.match(column.name, '%S+ from %S+') then
local rel, start_id = string.match(column.name, '(%S+) from (%S+)')
local column = {name=('neighbors of %s'):format(start_id)}
table.insert(column, load_pane_from_file(start_id))
for rel,target in pairs(Cache[start_id].links) do
table.insert(column, load_pane_from_file(target))
end
table.insert(Surface, column)
populate_unroll_column(column, start_id, rel)
elseif string.match(column.name, 'neighbors of %S+') then
local start_id = string.match(column.name, 'neighbors of (%S+)')
initialize_cache_if_necessary(start_id)
populate_neighbors_column(column, start_id)
else
error("don't know how to populate column \""..column.name.."\"")