Merge text.love
[?]
Dec 13, 2022, 6:54 AM
O3GEN2SD4VMVHHVQPK6PXQTRESMJI2OQBGSIQVL43GNBU5DB46FACDependencies
- [2]
KRDNIVZOMerge text.love - [3]
UYCVUHI5Merge lines.love - [4]
3PSFWAILMerge lines.love - [5]
EG5CRNWCMerge lines.love - [6]
AT3LVCMPMerge text.love - [7]
TLOAPLBJadd a license - [8]
BULPIBEGbeginnings of a module for the text editor - [9]
2CTN2IEFMerge lines.love - [10]
73OCE2MCafter much struggle, a brute-force undo - [11]
4YDBYBA4clean up memory leak experiments - [12]
TFM6F5ODMerge lines.love - [13]
32V6ZHQBMerge lines.love - [14]
KMSL74GAsupport selections in the source editor - [15]
VHUNJHXBMerge lines.love - [16]
RXNR3U5EMerge text.love - [17]
K2X6G75Zstart writing some tests for drawings - [18]
JOPVPUSAediting source code from within the app - [19]
KKMFQDR4editing source code from within the app - [20]
VXORMHMEdelete experimental REPL - [21]
VO2ZVTWKMerge lines.love - [22]
D4B52CQ2Merge lines.love - [23]
3QNOKBFMbeginnings of a test harness - [24]
ETXNVRPTMerge lines.love - [25]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [26]
SHUFMMIVMerge text.love - [27]
GUOQRUL7Merge lines.love - [28]
VBU5YHLRMerge lines.love - [29]
T4FRZSYLdelete an ancient, unused file - [30]
6BGU2SBJMerge text.love - [31]
VHQCNMARseveral more modules - [32]
66X36NZNa little more prose describing manual_tests - [33]
OTIBCAUJlove2d scaffold - [34]
D2GCFTTTclean up repl functionality - [35]
OGUV4HSAremove some memory leaks from rendered fragments - [36]
RSZD5A7Gforgot to add json.lua - [37]
VP5KC4XZMerge lines.love - [38]
NMRUNROTMerge lines.love - [39]
FS2ITYYHrecord a known issue - [40]
6LJZN727handle chords - [41]
AVTNUQYRbasic test-enabled framework - [42]
2L5MEZV3experiment: new edit namespace - [43]
BLWAYPKVextract a module - [44]
R5QXEHUIsomebody stop me - [45]
XX7G2FFJintermingle freehand line drawings with text - [46]
TVCPXAAUrename - [47]
LXTTOB33extract a couple of files - [48]
CE4LZV4Tdrop last couple of manual tests - [49]
MD3W5IRAnew fork: rip out drawing support - [50]
36Z442IVback to commit 8123959e52f without code editing
Change contents
- file deletion: source_edit.lua source_edit.lua
edit.update(State, 0)edit.draw(State)endedit.update(State, 0)edit.draw(State)endfunction edit.run_after_mouse_release(State, x,y, mouse_button)App.fake_mouse_release(x,y, mouse_button)edit.mouse_released(State, x,y, mouse_button)App.screen.contents = {}edit.update(State, 0)edit.draw(State)endfunction edit.run_after_mouse_press(State, x,y, mouse_button)App.fake_mouse_press(x,y, mouse_button)edit.mouse_pressed(State, x,y, mouse_button)App.screen.contents = {}edit.update(State, 0)edit.draw(State)endfunction edit.run_after_mouse_click(State, x,y, mouse_button)App.fake_mouse_press(x,y, mouse_button)edit.mouse_pressed(State, x,y, mouse_button)App.fake_mouse_release(x,y, mouse_button)edit.mouse_released(State, x,y, mouse_button)App.screen.contents = {}edit.update(State, 0)edit.draw(State)end-- not all keys are textinputfunction edit.run_after_keychord(State, chord)edit.keychord_pressed(State, chord)edit.key_released(State, chord)App.screen.contents = {}for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scrollText.textinput(State, t)endschedule_save(State)endfunction edit.keychord_pressed(State, chord, key)