Merge lines.love

[?]
Aug 20, 2022, 12:06 AM
6SMDSWQ2UUPDDOCEAXQN3C3M3W37HIUDN3N2CVUYVU4I76DJZUEQC

Dependencies

  • [2] 7YVCOPLE Merge upstream into main
  • [3] H3KWPK3G regression: dropping files on the window
  • [4] OTIBCAUJ love2d scaffold
  • [5] 73OCE2MC after much struggle, a brute-force undo
  • [6] 7M5PGWKU drop last couple of manual tests
  • [7] TVCPXAAU rename
  • [8] 5BJCYYHN convert videos to gif so they render inline on GitHub
  • [9] K2X6G75Z start writing some tests for drawings
  • [10] VHQCNMAR several more modules
  • [11] 27DROQW2 Merge upstream into main
  • [12] LF7BWEG4 group all editor globals
  • [13] LXTTOB33 extract a couple of files
  • [14] BPWFKBXT new test: dragging and dropping a file on lines.love
  • [15] BULPIBEG beginnings of a module for the text editor
  • [16] 2L5MEZV3 experiment: new edit namespace
  • [17] VUVH2XLF Merge upstream into main
  • [18] RSZD5A7G forgot to add json.lua
  • [19] V366JSXA videos
  • [20] 6LJZN727 handle chords
  • [21] R5QXEHUI somebody stop me
  • [22] VXORMHME delete experimental REPL
  • [23] TLOAPLBJ add a license
  • [24] AVTNUQYR basic test-enabled framework
  • [25] D2GCFTTT clean up repl functionality
  • [26] YT5P6TO6 bugfix: save previous file when dropping a new one on
  • [27] UHB4GARJ left/right margin -> left/right coordinates
  • [28] 7CEOB56D Merge upstream into main
  • [29] 4YDBYBA4 clean up memory leak experiments
  • [30] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [31] BLWAYPKV extract a module
  • [32] XX7G2FFJ intermingle freehand line drawings with text
  • [33] 66X36NZN a little more prose describing manual_tests
  • [34] FS2ITYYH record a known issue
  • [35] 3QNOKBFM beginnings of a test harness
  • [36] T4FRZSYL delete an ancient, unused file
  • [37] CE4LZV4T drop last couple of manual tests
  • [38] OGUV4HSA remove some memory leaks from rendered fragments

Change contents

  • file deletion: main_tests.lua (----------)main_tests.lua (----------)
    [4.2][4.1125:1163](),[4.2][4.1125:1163](),[4.1163][4.7:7]()
    edit.draw(Editor_state)
    end
    function test_drop_file_saves_previous()
    io.write('\ntest_drop_file_saves_previous')
    Editor_state = edit.initialize_test_state()
    App.filesystem['foo'] = 'abc\ndef\nghi\n'
    local fake_dropped_file = {
    opened = false,
    getFilename = function(self)
    return 'foo'
    end,
    open = function(self)
    self.opened = true
    end,
    lines = function(self)
    assert(self.opened)
    return App.filesystem['foo']:gmatch('[^\n]+')
    end,
    close = function(self)
    self.opened = false
    end,
    }
    App.filedropped(fake_dropped_file)
  • edit in main_tests.lua at line 22
    [4.508]
    [4.117]
    Editor_state = edit.initialize_test_state()
  • edit in main_tests.lua at line 45
    [4.801]
    [4.871]
    edit.draw(Editor_state)