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RM72TL7SLUQIJBN6D7DI5I6HSHCHXLPXREPADUNBBFM5TYAC
KVHUFUFVOSY6GB4XI2QK4T4WCLIYOV3NZR67TX6AQHAQDWJMEOBQC
X22MOJHFLXMZQJN4IP2HAXIIVD2ALPR4EO5V5YDYF6QPXS7ZNB6QC
VHQCNMARPMNBSIUFLJG7HVK4QGDNPCGNVFLHS3I4IGNVSV5MRLYQC
2XLZCWZCOFZGNAPSD7XNCYITKVY5WZW3OD7IXMC7WJQ5SBI7YHNQC
2K2YDMFHUUROCRDVKRYNXA75MTR3C2DXHYAAJRVPNTQW6LUARJDAC
2L5MEZV344TOZLVY3432RHJFIRVXFD6O3GWLL5O4CV66BGAFTURQC
LNUHQOGHIOFGJXNGA3DZLYEASLYYDGLN2I3EDZY5ANASQAHCG3YQC
QXVD2RIFQPTO3H6J3IJHRHRDRBW6C6MLUWMCEDQ6Z75SW2TMRBIQC
PTDO2SOTXEI6FROZ2AVRFXSKKNKCRMPPTQSI5LWD45UVGDJPMSGQC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
AD34IX2ZSGYGU3LGY2IZOZNKD4HRQOYJVG5UWMWLXJZJSM62FFOAC
7CLGG7J277QZGMNOVFEXBX6DRETCVK7GH66HJ7BYOBMPHTJCDFMAC
3QNOKBFMKBGXBVJIRHR2444JRRMBTABHE4674NR3DT67RRM2X6GAC
AVTNUQYRBW7IX2YQ3KDLVQ23RGW3BAKTAE7P73ASBYNKOHMQMH5AC
PX7DDEMOBGPVK3FXKK5XEPG24CJXZSVW67DLG2JZZ5E77NVEAA3AC
-- test data
Cache['foo'] = {lines=load_from_disk(Directory..'foo'), left=0, right=Display_settings.column_width}
Cache['foo2'] = {lines=load_from_disk(Directory..'foo2'), left=0, right=Display_settings.column_width}
Cache['foo3'] = {lines=load_from_disk(Directory..'foo3'), left=0, right=Display_settings.column_width}
for _,file in pairs(Cache) do
initialize_file(file)
end
-- initialize surface with unique editor objects for each pane
local column = {name='recently modified'}
--? table.insert(column, initialize_pane_with_placeholder_coordinates('foo3'))
table.insert(column, initialize_pane_with_placeholder_coordinates('foo2'))
table.insert(Surface, column)
column = {name='2022/07'}
table.insert(column, initialize_pane_with_placeholder_coordinates('foo'))
table.insert(Surface, column)
column = {name='search: foo'}
table.insert(column, initialize_pane_with_placeholder_coordinates('foo2'))
table.insert(column, initialize_pane_with_placeholder_coordinates('foo2'))
table.insert(column, initialize_pane_with_placeholder_coordinates('foo'))
table.insert(Surface, column)
-- initialize surface with a single column
command.recently_modified()
outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}), '\n')
outfile:write(json.encode({mode=shape.mode, center=drawing.points[shape.center], radius=shape.radius, start_angle=shape.start_angle, end_angle=shape.end_angle}))
outfile:write('\n')
App.open_for_reading = function(filename) return io.open(filename, 'r') end
App.open_for_writing = function(filename) return io.open(filename, 'w') end
App.open_for_reading =
function(filename)
local result = love.filesystem.newFile(filename)
result:open('r')
return result
end
App.open_for_writing =
function(filename)
local result = love.filesystem.newFile(filename)
result:open('w')
return result
end