Not recommended and ignored in many situations, but I want to try to provide a full basis set of operations.
DFO5SFDTU6GR5XQ4X5U6I2BENQNQP3M4EUUQ2E2DQEB3YQYS2WIAC function command.delete_note()local pane = Surface[Cursor_pane.col][Cursor_pane.row]if #Cache[pane.id].links > 0 thenreturnend-- TODO: test harness support for file ops belowif App.run_tests thenreturnend-- delete from disklove.filesystem.remove(Directory..pane.id)-- delete from recently modifiedlocal filenames = {}for line in love.filesystem.lines(Directory..'recent') doif line ~= pane.id thentable.insert(filenames, line)endendlocal f = love.filesystem.newFile(Directory..'recent')f:open('w')for _,filename in ipairs(filenames) dof:write(filename)f:write('\n')endf:close()--command.reload_all()update_pane_bounds()end