Merge text0
[?]
Sep 16, 2023, 7:13 AM
OV6FE23R76E357CRUDGHKSXYF5N3KO5NE62QL6OECX5SV3V4JCYQCDependencies
- [2]
UFOVVX3ZMerge text0 - [3]
2VWG2Z47Merge text0 - [4]
4L3UAM75experiment: knob for readonly editor - [5]
TWVSI3F2Merge text0 - [6]
M5JXTW56Merge text.love - [7]
X3F7ECSLadd state arg to some functions - [8]
SW7BSBMJseveral bugfixes in saving/loading cursor position - [9]
APYPFFS3call edit rather than App callbacks in tests - [10]
2CK5QI7Wmake love event names consistent - [11]
QCPXQ2E3add state arg to a few functions - [12]
OGD5RAQKbugfix: naming points in drawings - [13]
3PSFWAILMerge lines.love - [14]
4KC7I3E2make colors easier to edit - [15]
WJBZZQE4fold together two largely similar cases - [16]
PV2YA7KSsubsection headings in a long switch - [17]
LF7BWEG4group all editor globals - [18]
PP2IIHL6stop putting button state in a global - [19]
ELJNEPW2simplify cursor-on-screen check - [20]
KYNGDE2Cconsistent names in a few more places - [21]
5UKUADTWdistinguish consistently between mouse buttons and other buttons - [22]
4NUCYNB4Merge text0 - [23]
TGHAJBESuse line cache for drawings as well - [24]
AF253GHLbugfix - [25]
SPSW74Y5add state arg to Text.keychord_pressed - [26]
FPY4LO2Wmake a few names consistent with snake_case - [27]
U3MJNFUYMerge lines.love - [28]
GZ2OYPSHconfigurable colors and cursor in editor widget - [29]
3IQ2RK7BMerge text0 - [30]
6ECYOEHYbugfix: obsolete location for attribute - [31]
36Z442IVback to commit 8123959e52f without code editing - [32]
VZJHGWSPMerge lines.love - [33]
4EGQRXDAbugfix: naming points - [34]
5ZA3BRNYadd state arg to a few functions - [35]
34BZ5ZKNMerge lines.love - [36]
R2ASHK5Cfix a bad merge - [37]
6XCJX4DZbugfix: inscript's bug - [38]
PTDO2SOTadd state arg to schedule_save - [39]
32V6ZHQBMerge lines.love - [40]
3XNFQDDNMerge lines.love - [41]
WS436426Merge text0 - [42]
MUJTM6REbring back a level of wrapping - [43]
7VGDIPLCmore robust state validation - [44]
MD3W5IRAnew fork: rip out drawing support - [45]
LDFXFRUObring a few things in sync between run and source - [46]
MU2HIRR6Merge lines.love - [47]
2L5MEZV3experiment: new edit namespace - [48]
ONHKBLLCMerge lines.love - [49]
NVSC4N4Kchange a helper slightly - [50]
5BMR5HRTclick to the left of a line - [51]
IFTYOERMline.y -> line_cache.starty in a few more places - [52]
LNUHQOGHstart passing in Editor_state explicitly
Change contents
- edit in edit.lua at line 103[7.4219]→[7.4378:4423](∅→∅),[7.4219]→[7.4378:4423](∅→∅),[7.1400]→[4.935:983](∅→∅),[7.1400]→[4.935:983](∅→∅),[7.551]→[4.888:934](∅→∅),[7.551]→[4.888:934](∅→∅),[7.13403]→[4.841:887](∅→∅),[7.13403]→[4.841:887](∅→∅),[7.12717]→[4.794:840](∅→∅),[7.12717]→[4.794:840](∅→∅),[7.36]→[4.747:793](∅→∅),[7.36]→[4.747:793](∅→∅),[7.10343]→[4.640:746](∅→∅),[7.10343]→[4.640:746](∅→∅),[7.2117]→[4.612:639](∅→∅),[7.2117]→[4.612:639](∅→∅),[7.9696]→[4.566:611](∅→∅),[7.9696]→[4.566:611](∅→∅),[7.5853]→[2.257:344](∅→∅),[7.5853]→[2.257:344](∅→∅),[7.7264]→[7.234:258](∅→∅),[7.7264]→[7.234:258](∅→∅),[7.6627]→[7.159:183](∅→∅),[7.6627]→[7.159:183](∅→∅),[7.157]→[5.15:15](∅→∅),[7.157]→[5.15:15](∅→∅),[7.258]→[7.126:157](∅→∅),[7.258]→[7.126:157](∅→∅),[7.4618]→[7.125:125](∅→∅),[7.4618]→[7.125:125](∅→∅),[7.123]→[7.4587:4618](∅→∅),[7.7075]→[7.4587:4618](∅→∅),[7.123]→[7.4587:4618](∅→∅),[7.7075]→[7.4587:4618](∅→∅),[7.7075]→[7.99:123](∅→∅),[7.7075]→[7.99:123](∅→∅),[7.4586]→[7.98:98](∅→∅),[7.4586]→[7.98:98](∅→∅),[7.96]→[7.4555:4586](∅→∅),[7.6891]→[7.4555:4586](∅→∅),[7.96]→[7.4555:4586](∅→∅),[7.6891]→[7.4555:4586](∅→∅),[7.6891]→[7.72:96](∅→∅),[7.6891]→[7.72:96](∅→∅),[7.183]→[7.40:71](∅→∅),[7.183]→[7.40:71](∅→∅),[7.17]→[7.642:816](∅→∅),[3.40]→[7.642:816](∅→∅),[7.1023]→[7.642:816](∅→∅),[7.1023]→[7.642:816](∅→∅),[7.63]→[3.40:40](∅→∅),[7.63]→[3.40:40](∅→∅),[3.38]→[7.20:63](∅→∅),[7.795]→[7.20:63](∅→∅),[7.795]→[7.20:63](∅→∅),[7.795]→[7.20:63](∅→∅),[7.795]→[3.14:38](∅→∅),[7.795]→[3.14:38](∅→∅),[7.795]→[3.14:38](∅→∅),[7.4522]→[7.39:39](∅→∅),[7.4522]→[7.39:39](∅→∅),[7.37]→[7.4491:4522](∅→∅),[7.6430]→[7.4491:4522](∅→∅),[7.37]→[7.4491:4522](∅→∅),[7.6430]→[7.4491:4522](∅→∅),[7.6430]→[7.13:37](∅→∅),[7.6430]→[7.13:37](∅→∅)
Text.draw_search_bar(State, hide_cursor)Text.keychord_press(State, chord, readonly)elseif not readonly and chord == 'C-v' thenelseif not readonly and chord == 'C-x' thenelseif not readonly and chord == 'C-y' thenelseif not readonly and chord == 'C-z' thenfunction edit.keychord_press(State, chord, key, readonly)if not readonly and State.selection1.line andelseif not readonly thenfunction edit.text_input(State, t, readonly)y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, fg, hide_cursor)edit.update(State, 0)edit.update(State, 0)edit.draw(State, Text_color)edit.draw(State, Text_color)edit.update(State, 0)edit.draw(State, Text_color)edit.update(State, 0)edit.draw(State, Text_color)if #State.lines ~= #State.line_cache thenprint(('line_cache is out of date; %d when it should be %d'):format(#State.line_cache, #State.lines))assert(false)endfunction edit.draw(State, fg, hide_cursor)-- return y drawn untiledit.draw(State, Text_color)edit.update(State, 0) - replacement in edit.lua at line 106
function edit.draw(State)App.color(Text_color)function edit.draw(State, fg, hide_cursor) - replacement in edit.lua at line 130
y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos)y, screen_bottom1.pos = Text.draw(State, line_index, y, startpos, fg, hide_cursor) - replacement in edit.lua at line 135
Text.draw_search_bar(State)Text.draw_search_bar(State, hide_cursor) - replacement in edit.lua at line 251
function edit.text_input(State, t)function edit.text_input(State, t, readonly) - replacement in edit.lua at line 256
elseelseif not readonly then - replacement in edit.lua at line 263
function edit.keychord_press(State, chord, key)if State.selection1.line andfunction edit.keychord_press(State, chord, key, readonly)if not readonly and State.selection1.line and - replacement in edit.lua at line 312
elseif chord == 'C-z' thenelseif not readonly and chord == 'C-z' then - replacement in edit.lua at line 326
elseif chord == 'C-y' thenelseif not readonly and chord == 'C-y' then - replacement in edit.lua at line 348
elseif chord == 'C-x' thenelseif not readonly and chord == 'C-x' then - replacement in edit.lua at line 355
elseif chord == 'C-v' thenelseif not readonly and chord == 'C-v' then - replacement in edit.lua at line 378
Text.keychord_press(State, chord)Text.keychord_press(State, chord, readonly) - replacement in edit.lua at line 416
edit.draw(State)edit.draw(State, Text_color) - replacement in edit.lua at line 425
edit.draw(State)edit.draw(State, Text_color) - replacement in edit.lua at line 435
edit.draw(State)edit.draw(State, Text_color) - replacement in edit.lua at line 443
edit.draw(State)edit.draw(State, Text_color) - replacement in edit.lua at line 451
edit.draw(State)edit.draw(State, Text_color)