update /recent file with new filenames

[?]
Jul 26, 2022, 6:58 AM
XNHZZH6BY52OY6GLRSAEP34KNHNKZEDIQU4BGEAG5CERRCKFVK5QC

Dependencies

  • [2] CV6XLZMW trailing slash on directory
  • [3] MSDHRXWU Merge upstream into main
  • [4] R6GUSTBY default font size and line-height
  • [5] WQOSZSUE warn on unused commandline args
  • [6] ZLEPKWDJ fork: capture frontend for a note-taking system
  • [7] UVIDOW6Z Merge upstream into main
  • [*] OTIBCAUJ love2d scaffold
  • [*] VHQCNMAR several more modules
  • [*] 2L5MEZV3 experiment: new edit namespace
  • [*] LF7BWEG4 group all editor globals

Change contents

  • replacement in main.lua at line 41
    [3.168][2.8:87]()
    Editor_state.filename = Editor_state.directory..os.date('%Y/%m/%d/%H-%M-%S')
    [3.168]
    [3.8]
    Editor_state.file_path = os.date('%Y/%m/%d/%H-%M-%S')
    Editor_state.filename = Editor_state.directory..Editor_state.file_path
  • edit in file.lua at line 51
    [10.16238]
    [10.16238]
    if not State.recent_updated then
    local f = io.open(State.directory..'recent', 'a')
    if f then
    f:write(State.file_path, '\n')
    f:close()
    end
    State.recent_updated = true
    end
  • edit in edit.lua at line 109
    [12.97681]
    [11.3654]
    recent_updated = false, -- on first write, log filename to a 'recent' file