Merge lines.love
[?]
Dec 24, 2022, 4:46 AM
XGHCLIKBWIW24G7O5QLYH6EUIY3TWTYFTUIYTWE25RFEGBHMZOKQCDependencies
- [2]
ORKN6EOBMerge lines.love - [3]
DFGPHG5Toverzealous search-and-replace - [4]
3P5RYCBLanother missed rename - [5]
IM6GSGVZfix some arg names - [6]
KKMFQDR4editing source code from within the app - [7]
VXORMHMEdelete experimental REPL - [8]
EMHRPJ3Rno, that's not right - [9]
GUOQRUL7Merge lines.love - [10]
HRWN5V6JDevine's suggestion to try to live with just freehand - [11]
RSZD5A7Gforgot to add json.lua - [12]
AVTNUQYRbasic test-enabled framework - [13]
OGUV4HSAremove some memory leaks from rendered fragments - [14]
LXTTOB33extract a couple of files - [15]
CIQN2MDEbugfix: typing a capital letter deletes selection - [16]
VHUNJHXBMerge lines.love - [17]
KMSL74GAsupport selections in the source editor - [18]
PX7DDEMOautosave slightly less aggressively - [19]
VHQCNMARseveral more modules - [20]
FS2ITYYHrecord a known issue - [21]
BULPIBEGbeginnings of a module for the text editor - [22]
4YDBYBA4clean up memory leak experiments - [23]
2L5MEZV3experiment: new edit namespace - [24]
73OCE2MCafter much struggle, a brute-force undo - [25]
ETXNVRPTMerge lines.love - [26]
6DE7RBZ6move mouse_released events to Drawing - [27]
BYG5CEMVsupport for naming points - [28]
2Y7YH7UPinfrastructure for caching LÖVE text objects - [29]
BLWAYPKVextract a module - [30]
OTIBCAUJlove2d scaffold - [31]
R5QXEHUIsomebody stop me - [32]
D4B52CQ2Merge lines.love - [33]
TLOAPLBJadd a license - [34]
K2X6G75Zstart writing some tests for drawings - [35]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [36]
3QNOKBFMbeginnings of a test harness - [37]
EF6MFB46assume we always have a filename - [38]
MD3W5IRAnew fork: rip out drawing support - [39]
TVCPXAAUrename - [40]
APX2PY6Gstop tracking wallclock time - [41]
XX7G2FFJintermingle freehand line drawings with text - [42]
IFGAJAF7add a level of indirection to vertices of shapes - [43]
VP5KC4XZMerge lines.love - [44]
FYS7TCDWbugfix - [45]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [46]
T4FRZSYLdelete an ancient, unused file - [47]
6LJZN727handle chords - [48]
2CK5QI7Wmake love event names consistent - [49]
JCSLDGAHbeginnings of support for multiple shapes - [50]
66X36NZNa little more prose describing manual_tests - [51]
KYNGDE2Cconsistent names in a few more places - [52]
2CTN2IEFMerge lines.love - [53]
CE4LZV4Tdrop last couple of manual tests - [54]
LNUHQOGHstart passing in Editor_state explicitly - [55]
VO2ZVTWKMerge lines.love - [56]
D2GCFTTTclean up repl functionality - [57]
3PSFWAILMerge lines.love - [58]
JOPVPUSAediting source code from within the app
Change contents
- file deletion: source_text_tests.lua source_text_tests.lua
-- selection persists even after shift is releasedcheck_eq(Editor_state.selection1.line, 1, 'F - test_select_text/selection:line')check_eq(Editor_state.selection1.pos, 1, 'F - test_select_text/selection:pos')check_eq(Editor_state.cursor1.line, 1, 'F - test_select_text/cursor:line')check_eq(Editor_state.cursor1.pos, 2, 'F - test_select_text/cursor:pos')endfunction test_cursor_movement_without_shift_resets_selection()io.write('\ntest_cursor_movement_without_shift_resets_selection')-- display a line of text with some part selectedApp.screen.init{width=75, height=80}Editor_state = edit.initialize_test_state()Editor_state.lines = load_array{'abc'}Text.redraw_all(Editor_state)Editor_state.cursor1 = {line=1, pos=1}Editor_state.selection1 = {line=1, pos=2}Editor_state.screen_top1 = {line=1, pos=1}Editor_state.screen_bottom1 = {}edit.draw(Editor_state)-- press an arrow key without shiftedit.run_after_keychord(Editor_state, 'right')-- no change to data, selection is resetcheck_nil(Editor_state.selection1.line, 'F - test_cursor_movement_without_shift_resets_selection')check_eq(Editor_state.lines[1].data, 'abc', 'F - test_cursor_movement_without_shift_resets_selection/data') - replacement in source_text_tests.lua at line 610
-- selection persists even after shift is release-- selection persists even after shift is released - edit in main.lua at line 210
function App.keyreleased(chord, key)-- ignore events for some time after window in focus (mostly alt-tab) - resurrect zombie in main.lua at line 210
function App.keyreleased(key, scancode) - edit in main.lua at line 211
-- ignore events for some time after window in focus (mostly alt-tab) - replacement in main.lua at line 219[6.190433]→[6.4885:4951](∅→∅),[6.190433]→[6.4885:4951](∅→∅),[6.190680]→[4.17:84](∅→∅),[6.190680]→[4.17:84](∅→∅),[6.190789]→[4.85:158](∅→∅),[6.190789]→[4.85:158](∅→∅)
if source.key_release then source.key_release(chord, key) endif run.mouse_press then run.mouse_press(x,y, mouse_button) endif source.mouse_press then source.mouse_press(x,y, mouse_button) endif source.key_release then source.key_release(key, scancode) end - replacement in main.lua at line 228
if run.mouse_pressed then run.mouse_press(x,y, mouse_button) endif run.mouse_press then run.mouse_press(x,y, mouse_button) end - replacement in main.lua at line 230
if source.mouse_pressed then source.mouse_press(x,y, mouse_button) endif source.mouse_press then source.mouse_press(x,y, mouse_button) end - edit in main.lua at line 264
if source.key_release then source.key_release(key, scancode) end - resolve order conflict in main.lua at line 264[6.268]