Current design choices:
BWZW73XTQVQAMNAPK7MLQGANDOTWQ6RY5NEN7QUYK6KXNQC4CFJAC
YRN76EXV3KEOH3TD23RSL56RB2UJPBB7OC7PT64GSVWVTJUOJGFQC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
RLXBO23FJSCZNRFBF4PN4JHHS3PASDS5IMQIVD54VHKLJ4BHJGCAC
GYFNSF33NGUAYEECESFKCSE4BYYFQGOF5XTQI4NQKXUUBTARHBVQC
5RUFNRJOK3PXQKJTPDEN5K5PI67MGB25QUA44WOCCH2O5KHXT45QC
NM2SILGFTYCIH7TDU3PU3U67J5KLZMDERTFLZQ3DA7WYGWPKEHKAC
can_be_unstashed = function(pane)
if not pane.is_stash then return end
assert(pane.filename)
local filename = unstash_filename(pane.filename)
return not nativefs.getInfo(App.save_dir..Directory..filename)
end
unstash_filename = function(filename)
return filename:gsub('%..*', '')
end
unstash_pane = function(pane)
local src = Stash_directory..pane.filename
local contents, error = love.filesystem.read(src)
if not contents then return print_to_output(error) end
love.filesystem.createDirectory(Directory)
local filename = unstash_filename(pane.filename)
local dest = Directory..filename
local success, error = love.filesystem.write(dest, contents)
if not success then return print_to_output(error) end
pane.filename = filename
pane.is_stash = nil
end
press_unstash_button = function()
-- disable local modifications to a file without deleting it or saving the pane
Show_menu = nil
unstash_pane(Current_pane)
end
unstash_button = function(x,y, r)
return overflowable_button('unstash', x, y, r, press_unstash_button)
end