Merge lines.love

[?]
Dec 24, 2022, 3:08 AM
KFCDC75UVDBMUZ5HWTC3UEF6IXRKS4CGNGBXENWEYQQ6MOCLHE6AC

Dependencies

  • [2] DJQXH5EC Merge lines.love
  • [3] 2CK5QI7W make love event names consistent
  • [4] KVHUFUFV reorg
  • [5] OAHNWDYG .
  • [6] LNUHQOGH start passing in Editor_state explicitly
  • [7] 2L5MEZV3 experiment: new edit namespace
  • [8] AVTNUQYR basic test-enabled framework
  • [9] XX7G2FFJ intermingle freehand line drawings with text
  • [10] OTIBCAUJ love2d scaffold
  • [11] PX7DDEMO autosave slightly less aggressively
  • [12] KKMFQDR4 editing source code from within the app
  • [13] JRLBUB6L more intuitive point delete from polygons
  • [14] HRWN5V6J Devine's suggestion to try to live with just freehand
  • [15] S7ZZA3YE ugh, handle absolute as well as relative paths
  • [16] 57OGXVHZ Merge lines.love
  • [17] 3QQZ7W4E bring couple more globals back to the app level
  • [18] TXDMRA5J bugfix: alt-tab shouldn't emit keypress events
  • [19] APX2PY6G stop tracking wallclock time
  • [20] RT6EV6OP delegate update events to drawings
  • [21] JCSLDGAH beginnings of support for multiple shapes

Change contents

  • edit in run.lua at line 94
    [4.181820][3.4024:4053](),[4.181820][3.4024:4053]()
    function run.file_drop(file)
  • edit in main.lua at line 159
    [4.8][4.188673:188715](),[4.8][4.188673:188715]()
    function App.keychord_pressed(chord, key)
  • resurrect zombie in main.lua at line 160
    [3.4577][4.188715:188787](),[4.188715][4.188715:188787](),[4.188715][4.188715:188787]()
    -- ignore events for some time after window in focus (mostly alt-tab)
  • resurrect zombie in main.lua at line 162
    [4.619][4.188836:189596](),[4.188836][4.188836:189596](),[4.188836][4.188836:189596]()
    return
    end
    --
    if chord == 'C-e' then
    -- carefully save settings
    if Current_app == 'run' then
    local source_settings = Settings.source
    Settings = run.settings()
    Settings.source = source_settings
    if run.quit then run.quit() end
    Current_app = 'source'
    elseif Current_app == 'source' then
    Settings.source = source.settings()
    if source.quit then source.quit() end
    Current_app = 'run'
    else
    assert(false, 'unknown app "'..Current_app..'"')
    end
    Settings.current_app = Current_app
    love.filesystem.write('config', json.encode(Settings))
    -- reboot
    load_file_from_source_or_save_directory('main.lua')
    App.undo_initialize()
    App.run_tests_and_initialize()
    return
  • edit in main.lua at line 189
    [4.189628][4.189628:189698](),[4.189628][4.189628:189698]()
    if run.keychord_pressed then run.keychord_pressed(chord, key) end
  • resurrect zombie in main.lua at line 190
    [3.4644][4.189698:189736](),[4.189698][4.189698:189736](),[4.189698][4.189698:189736]()
    elseif Current_app == 'source' then
  • edit in main.lua at line 191
    [4.189736][4.189736:189812](),[4.189736][4.189736:189812]()
    if source.keychord_pressed then source.keychord_pressed(chord, key) end
  • resurrect zombie in main.lua at line 192
    [3.4717][4.189812:189872](),[4.189812][4.189812:189872](),[4.189812][4.189812:189872]()
    else
    assert(false, 'unknown app "'..Current_app..'"')