Not persistent yet.
QMWB3N3NKEACQBGY7JRFW5J74Z74CBLKJC2EDJJEDV7NKM2NQCGQC
A45652UONJ5TTRUEBAIYNLLUJNNPYUR4MQEIN7WDZE2BXROZFSRQC
JPX4LCTO7AWAFUFO7G2TRQQAQ4CKDYZ52PX7XXROIBKXJYNZITOQC
IZAQ4C7DZ3OTGUPDYVRYJPHO6HT67HL7DZLPNIPWINBHNNLK42OAC
GQBUV2XOMEPMTXMPCBQWGGIUXGQDX77VTGPFIG6YT7G64ASOYHXQC
AUE2Y6HE5AIZVFO6EGLYNXKBDXGXJKDURTA4CFAEX6ZWRZKUCMUQC
5O356ZWY6DCM3Y6VFZPYQY5AIHIN6JGZDGLXU5DL6LWTFNDDFPFQC
LN4IIRPP2CQ26OJZLXL37MYK2H3PXRWDNVM3FQKQPWNPOZAR6DQQC
J3YDSRMTV44CILD443Y36LHYII2ZI43DFAWJZG6PERP35DEVYXRQC
DCRK7A4WVEY7AIGV4AHTO3Z4V4HXJJ7O27HFSDHZZSAN5BHPNDAAC
table.insert(Surface, Cursor_pane.col+1, column)
Cursor_pane.col = Cursor_pane.col+1
Cursor_pane.row = 1
local col_sx = left_edge_sx(Cursor_pane.col)
if col_sx > Display_settings.x + App.screen.width - Display_settings.column_width then
Display_settings.x = math.max(0, col_sx + Display_settings.column_width + Margin_right + Padding_horizontal - App.screen.width)
Display_settings.y = 0
end
update_pane_bounds()
end
function command.new_note(rel)
if rel == nil then
rel = 'next'
end
local pane = Surface[Cursor_pane.col][Cursor_pane.row]
-- TODO
local filename = os.date('%Y/%m/%d/%H-%M-%S')
print('creating directory '..Directory..dirname(filename))
local status = love.filesystem.createDirectory(Directory..dirname(filename))
assert(status)
Cache[filename] = {lines={{mode='text', data=''}}, left=0, right=Display_settings.column_width}
initialize_file_metadata(Cache[filename])
local column = {name=filename}
print('connecting up links')
local new_pane = load_pane_from_file(filename)
if pane.links == nil then
pane.links = {}
end
pane.links[rel] = new_pane.id
new_pane.links = {}
new_pane.links[Opposite[rel]] = pane.id
table.insert(column, new_pane)