Merge text.love
[?]
Dec 24, 2022, 4:50 AM
4DHGKUMDTRLJHNRO5UCLE457HF3PHFQC7GMDEIFY6UYTYP45MKZACDependencies
- [2]
C3GUE45IMerge text.love - [3]
XGHCLIKBMerge lines.love - [4]
TVCPXAAUrename - [5]
KMSL74GAsupport selections in the source editor - [6]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [7]
PX7DDEMOautosave slightly less aggressively - [8]
VXORMHMEdelete experimental REPL - [9]
MD3W5IRAnew fork: rip out drawing support - [10]
CIQN2MDEbugfix: typing a capital letter deletes selection - [11]
TLOAPLBJadd a license - [12]
D4B52CQ2Merge lines.love - [13]
APX2PY6Gstop tracking wallclock time - [14]
4YDBYBA4clean up memory leak experiments - [15]
3QNOKBFMbeginnings of a test harness - [16]
AT3LVCMPMerge text.love - [17]
IM6GSGVZfix some arg names - [18]
AVTNUQYRbasic test-enabled framework - [19]
XX7G2FFJintermingle freehand line drawings with text - [20]
LNUHQOGHstart passing in Editor_state explicitly - [21]
BULPIBEGbeginnings of a module for the text editor - [22]
VHUNJHXBMerge lines.love - [23]
RXNR3U5EMerge text.love - [24]
73OCE2MCafter much struggle, a brute-force undo - [25]
VO2ZVTWKMerge lines.love - [26]
2CTN2IEFMerge lines.love - [27]
OTIBCAUJlove2d scaffold - [28]
OGUV4HSAremove some memory leaks from rendered fragments - [29]
6DE7RBZ6move mouse_released events to Drawing - [30]
GUOQRUL7Merge lines.love - [31]
HRWN5V6JDevine's suggestion to try to live with just freehand - [32]
BYG5CEMVsupport for naming points - [33]
6LJZN727handle chords - [34]
K2X6G75Zstart writing some tests for drawings - [35]
JOPVPUSAediting source code from within the app - [36]
RSZD5A7Gforgot to add json.lua - [37]
T4FRZSYLdelete an ancient, unused file - [38]
BLWAYPKVextract a module - [39]
VHQCNMARseveral more modules - [40]
JCSLDGAHbeginnings of support for multiple shapes - [41]
FYS7TCDWbugfix - [42]
EMHRPJ3Rno, that's not right - [43]
2Y7YH7UPinfrastructure for caching LÖVE text objects - [44]
2CK5QI7Wmake love event names consistent - [45]
KKMFQDR4editing source code from within the app - [46]
66X36NZNa little more prose describing manual_tests - [47]
IFGAJAF7add a level of indirection to vertices of shapes - [48]
2L5MEZV3experiment: new edit namespace - [49]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [50]
EF6MFB46assume we always have a filename - [51]
ETXNVRPTMerge lines.love - [52]
3PSFWAILMerge lines.love - [53]
FS2ITYYHrecord a known issue - [54]
CE4LZV4Tdrop last couple of manual tests - [55]
VP5KC4XZMerge lines.love - [56]
R5QXEHUIsomebody stop me - [57]
D2GCFTTTclean up repl functionality - [58]
LXTTOB33extract a couple of files - [59]
36Z442IVback to commit 8123959e52f without code editing - [60]
ORKN6EOBMerge lines.love
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') - edit in main.lua at line 200
function App.keyreleased(key, scancode) - edit in main.lua at line 204
if run.key_release then run.key_release(key, scancode) end - edit in main.lua at line 216[4.268]→[2.172:172](∅→∅),[4.268]→[3.357:357](∅→∅),[4.190433]→[3.144:213](∅→∅),[4.190433]→[3.144:213](∅→∅),[4.190137]→[3.214:281](∅→∅),[4.190137]→[3.214:281](∅→∅),[4.190246]→[3.282:355](∅→∅),[4.190246]→[3.282:355](∅→∅)
if source.key_release then source.key_release(key, scancode) endif run.mouse_press then run.mouse_press(x,y, mouse_button) endif source.mouse_press then source.mouse_press(x,y, mouse_button) end - resolve order conflict in main.lua at line 216[4.268]