I'm scaling down my ambitions. Stashed files can't have notes attached. I think that encourages a higher scale of development on such apps than is currently justified, given you're liable to lose all your work if you upgrade LÖVE.
New plan: just name stashed files with a numeric suffix.
The remaining open question is now around unstash. Should unstash copy or move?
YRN76EXV3KEOH3TD23RSL56RB2UJPBB7OC7PT64GSVWVTJUOJGFQC
JGGV3SU7DDBZB52T3AYYM5OGN572IK4Q5CXLURWZYOADMURBBRTQC
NM2SILGFTYCIH7TDU3PU3U67J5KLZMDERTFLZQ3DA7WYGWPKEHKAC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
YR7AXEYBLB7Y4OZKPX4REW5JD5VOCSKMAC2TR5N75UJEG72XJUQAC
FIUQJVL2MCC4VKKX7JBT6377TWIGPTUC5NXMUABV5JILB3ZDWZFAC
JOY24JW6ELCMS44MMPC2YBO6DX5KJL6DPGNHQOOSGQLYZ5OLGW5AC
GYFNSF33NGUAYEECESFKCSE4BYYFQGOF5XTQI4NQKXUUBTARHBVQC
5RUFNRJOK3PXQKJTPDEN5K5PI67MGB25QUA44WOCCH2O5KHXT45QC
PO77NPCO2Y4RKIG6TJWOA44PKCAAZ2LXOIRBBOPTA3D4BUTHL6MQC
add_stash_files_to_dialog = function(x,y)
for _,filename in ipairs(Stash_directory_contents) do
if filename:find(File_dialog_input_text) then
local w = Font:getWidth(filename) + 10
if x ~= Menu_left+10 and x+w > Safe_width-Menu_left-10 then
x = Menu_left+10
y = y+Line_height+10
if y > Safe_height-Menu_bottom-10 then
break
end
end
styled_button(filename, x,y, function()
File_dialog_callback(filename, --[[is stash?]] true)
reset_file_dialog_state()
end,
--[[tooltip text]] nil,
Stash_color)
x = x+w+10
end
end
return y
end