Merge lines.love
[?]
Aug 20, 2022, 12:06 AM
6SMDSWQ2UUPDDOCEAXQN3C3M3W37HIUDN3N2CVUYVU4I76DJZUEQCDependencies
- [2]
7YVCOPLEMerge upstream into main - [3]
H3KWPK3Gregression: dropping files on the window - [4]
OTIBCAUJlove2d scaffold - [5]
73OCE2MCafter much struggle, a brute-force undo - [6]
7M5PGWKUdrop last couple of manual tests - [7]
TVCPXAAUrename - [8]
5BJCYYHNconvert videos to gif so they render inline on GitHub - [9]
K2X6G75Zstart writing some tests for drawings - [10]
VHQCNMARseveral more modules - [11]
27DROQW2Merge upstream into main - [12]
LF7BWEG4group all editor globals - [13]
LXTTOB33extract a couple of files - [14]
BPWFKBXTnew test: dragging and dropping a file on lines.love - [15]
BULPIBEGbeginnings of a module for the text editor - [16]
2L5MEZV3experiment: new edit namespace - [17]
VUVH2XLFMerge upstream into main - [18]
RSZD5A7Gforgot to add json.lua - [19]
V366JSXAvideos - [20]
6LJZN727handle chords - [21]
R5QXEHUIsomebody stop me - [22]
VXORMHMEdelete experimental REPL - [23]
TLOAPLBJadd a license - [24]
AVTNUQYRbasic test-enabled framework - [25]
D2GCFTTTclean up repl functionality - [26]
YT5P6TO6bugfix: save previous file when dropping a new one on - [27]
UHB4GARJleft/right margin -> left/right coordinates - [28]
7CEOB56DMerge upstream into main - [29]
4YDBYBA4clean up memory leak experiments - [30]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [31]
BLWAYPKVextract a module - [32]
XX7G2FFJintermingle freehand line drawings with text - [33]
66X36NZNa little more prose describing manual_tests - [34]
FS2ITYYHrecord a known issue - [35]
3QNOKBFMbeginnings of a test harness - [36]
T4FRZSYLdelete an ancient, unused file - [37]
CE4LZV4Tdrop last couple of manual tests - [38]
OGUV4HSAremove some memory leaks from rendered fragments
Change contents
- file deletion: main_tests.lua main_tests.lua
edit.draw(Editor_state)endfunction 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 = trueend,lines = function(self)assert(self.opened)return App.filesystem['foo']:gmatch('[^\n]+')end,close = function(self)self.opened = falseend,}App.filedropped(fake_dropped_file) - edit in main_tests.lua at line 22
Editor_state = edit.initialize_test_state() - edit in main_tests.lua at line 45
edit.draw(Editor_state)