Merge text0
[?]
Dec 24, 2022, 4:17 AM
CYGNFOA5CP46F5A4JHWLLE2Y7IYTYUQ52XRYWTECTCUMT7PPL2NACDependencies
- [2]
QMTFHF3Sbugfix: chords with modifiers - [3]
GZ2OYPSHconfigurable colors and cursor in editor widget - [4]
GDAWPFAVmore streamlined test names - [5]
C3GUE45IMerge text.love - [6]
LRDM35CEapp running again - [7]
UHB4GARJleft/right margin -> left/right coordinates - [8]
LNUHQOGHstart passing in Editor_state explicitly - [9]
NZKYPBSKcheck for scroll when just typing - [10]
KVHUFUFVreorg - [11]
ZLJGZYQGselect text with shift + mouseclick - [12]
Y2ZIPXEMnew test - [13]
ORKN6EOBMerge lines.love - [14]
JOPVPUSAediting source code from within the app - [15]
2Y7YH7UPinfrastructure for caching LÖVE text objects - [16]
AVTNUQYRbasic test-enabled framework - [17]
LAW2O3NWextract variable Margin_left - [18]
JCSLDGAHbeginnings of support for multiple shapes - [19]
OAHNWDYG. - [20]
2CTN2IEFMerge lines.love - [21]
XX7G2FFJintermingle freehand line drawings with text - [22]
2L5MEZV3experiment: new edit namespace - [23]
H3ECRBXFbugfix: clicking on empty lines - [24]
ILOA5BYFseparate data structure for each line's cache data - [25]
2JLVAYHBstart decoupling editor tests from App - [26]
AJB4LFRBtry to maintain a reasonable line width - [27]
LF7BWEG4group all editor globals - [28]
EKKFWP4Dbugfix: couple of margin-relative computations - [29]
RT6EV6OPdelegate update events to drawings - [30]
DJGC4ZEFsimplify hysteresis logic - [31]
KKMFQDR4editing source code from within the app - [32]
2CK5QI7Wmake love event names consistent - [33]
APYPFFS3call edit rather than App callbacks in tests - [34]
OTIBCAUJlove2d scaffold - [35]
KOTI3MFGbugfix in previous commit - [36]
PX7DDEMOautosave slightly less aggressively - [37]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [38]
IFTYOERMline.y -> line_cache.starty in a few more places - [39]
36Z442IVback to commit 8123959e52f without code editing - [40]
VP5KC4XZMerge lines.love - [41]
YJ6ASFBGyet another fork trying to integrate my live framework with everything else - [42]
P6SYWBLBremove a duplicate test - [43]
LXTTOB33extract a couple of files
Change contents
- resurrect zombie in text_tests.lua at line 39
edit.draw(Editor_state, Text_color) - resurrect zombie in text_tests.lua at line 40
edit.run_after_text_input(Editor_state, 'a') - resolve order conflict in text_tests.lua at line 40
- resurrect zombie in text_tests.lua at line 251
edit.draw(Editor_state, Text_color) - edit in text_tests.lua at line 251
-- click on the other line - edit in text_tests.lua at line 253[6.7400]→[6.140:354](∅→∅),[6.354]→[4.78:244](∅→∅),[4.244]→[6.435:492](∅→∅),[6.435]→[6.435:492](∅→∅),[6.492]→[4.245:419](∅→∅)
Editor_state.selection1 = {}edit.draw(Editor_state) -- populate line_cache.starty for each line Editor_state.line_cacheedit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)check_eq(Editor_state.cursor1.line, 1, 'F - test_click_moves_cursor/cursor:line')check_eq(Editor_state.cursor1.pos, 2, 'F - test_click_moves_cursor/cursor:pos')-- selection is empty to avoid perturbing future editscheck_nil(Editor_state.selection1.line, 'F - test_click_moves_cursor/selection:line')check_nil(Editor_state.selection1.pos, 'F - test_click_moves_cursor/selection:pos') - resolve order conflict in text_tests.lua at line 253[3.703]
- edit in text_tests.lua at line 253
edit.run_after_mouse_click(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)-- cursor movescheck_eq(Editor_state.cursor1.line, 1, 'F - test_click_with_mouse/cursor:line')check_nil(Editor_state.selection1.line, 'F - test_click_with_mouse/selection is empty to avoid perturbing future edits') - resurrect zombie in text_tests.lua at line 741
edit.draw(Editor_state, Text_color) - resurrect zombie in text_tests.lua at line 742
edit.run_after_text_input(Editor_state, 'g') - resolve order conflict in text_tests.lua at line 742
- resurrect zombie in text_tests.lua at line 830
edit.draw(Editor_state, Text_color) -- populate line_cache.starty for each line Editor_state.line_cache - edit in text_tests.lua at line 830
function test_move_cursor_using_mouse()io.write('\ntest_move_cursor_using_mouse')App.screen.init{width=50, height=60}Editor_state = edit.initialize_test_state()Editor_state.lines = load_array{'abc', 'def', 'xyz'}Text.redraw_all(Editor_state)Editor_state.cursor1 = {line=1, pos=1}Editor_state.screen_top1 = {line=1, pos=1}Editor_state.screen_bottom1 = {}Editor_state.selection1 = {} - edit in text_tests.lua at line 841
edit.run_after_mouse_release(Editor_state, Editor_state.left+8,Editor_state.top+5, 1)check_eq(Editor_state.cursor1.line, 1, 'F - test_move_cursor_using_mouse/cursor:line')check_eq(Editor_state.cursor1.pos, 2, 'F - test_move_cursor_using_mouse/cursor:pos')check_nil(Editor_state.selection1.line, 'F - test_move_cursor_using_mouse/selection:line')check_nil(Editor_state.selection1.pos, 'F - test_move_cursor_using_mouse/selection:pos')end - resurrect zombie in text_tests.lua at line 1874
edit.draw(Editor_state, Text_color) - resurrect zombie in text_tests.lua at line 1875
edit.run_after_text_input(Editor_state, 'g') - resolve order conflict in text_tests.lua at line 1875
- resurrect zombie in main.lua at line 128
-- App.keypressed is defined in keychord.lua - resolve order conflict in main.lua at line 130
- replacement in main.lua at line 136
if on.keychord_pressed then on.keychord_pressed(chord, key) endreturn edit.keychord_press(Editor_state, chord, key)if on.keychord_press then on.keychord_press(chord, key) end - replacement in main.lua at line 145
if on.textinput then on.textinput(t) endreturn edit.text_input(Editor_state, t)if on.text_input then on.text_input(t) end - replacement in main.lua at line 154
if on.key_released then on.key_released(key, scancode, isrepeat) endreturn edit.key_release(Editor_state, key, scancode)if on.key_release then on.key_release(key, scancode, isrepeat) end - edit in main.lua at line 164
- resolve order conflict in main.lua at line 164[6.268]