Merge text0
[?]
Apr 2, 2023, 11:50 PM
HLIF3YQENAUOE4DTSYBCDIRQVWLJ5VPVYC43OC3QP5HSHMCSVP4ACDependencies
- [2]
A3Z3S62Kget rid of dubious heuristic helper - [3]
QD4LOFQRMerge text.love - [4]
XUGDTYW2stop confusingly reading a global - [5]
TXHMMX25move caching behavior inside compute_fragments - [6]
PX7DDEMOautosave slightly less aggressively - [7]
3QMTXKWNrename - [8]
4VKEE43Zbugfix - [9]
ILOA5BYFseparate data structure for each line's cache data - [10]
V5SYDHPQstart thinking of compute_fragments as a detail - [11]
JCXL74WVbring back everything from commit a68647ae22 - [12]
BULPIBEGbeginnings of a module for the text editor - [13]
BW2IUB3Kkeep all text cache writes inside text.lua - [14]
4KC7I3E2make colors easier to edit - [15]
TSV3KPBRtweak format of test failures - [16]
MUJTM6REbring back a level of wrapping - [17]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [18]
AVTNUQYRbasic test-enabled framework - [19]
R3KXFRZNget rid of to_text - [20]
2RXZ3PGObeginning of a new approach to scroll+wrap - [21]
4EGQRXDAbugfix: naming points - [22]
KURLAXXIclean up some prints - [23]
NSHI3CH5Merge text0 - [24]
36Z442IVback to commit 8123959e52f without code editing - [25]
ISOFHXB2App.width can no longer take a Text - [26]
OYXDYPGSget rid of debug variables - [27]
5ZCQGZP5save 2 more alternate formats for test failures - [28]
BE3WIEVKupdate cursor in search box - [29]
AD34IX2Zcouple more tests - [30]
MD3W5IRAnew fork: rip out drawing support - [31]
HKV72RZVbugfix: save modified files in save directory - [32]
CVGE3SIGI feel confident now that page-down is working. - [33]
EWMPYCDObugfix - [34]
LXTTOB33extract a couple of files - [35]
ZLJYLPOTMerge lines.love - [36]
2CTN2IEFMerge lines.love - [37]
LF7BWEG4group all editor globals - [38]
B3IWYWSRdelete another arg that can be deduced - [39]
Z4XRNDTRfind text - [40]
FZBXBUFFbugfix: search - [41]
Y36LOGR5bugfix: show cursor when past end of line - [42]
CZQ3NJ4NMerge text0 - [43]
HALS7E5Umore clearly skip prints before screen top - [44]
JNJ4R56Xsupport running tests multiple times - [45]
3ZSUBI57drop some redundant args from Text.draw - [46]
S2QMLRXLstop creating a singleton table for every word - [47]
GZ2OYPSHconfigurable colors and cursor in editor widget - [48]
LWPRYDLWset color for each fragment - [49]
XNFTJHC4split keyboard handling between Text and Drawing - [50]
ZDAJXYIXremove some unnecessary work - [51]
7CLGG7J2test: autosave after any shape - [52]
ORRSP7FVdeduce test names on failures - [53]
X3F7ECSLadd state arg to some functions - [54]
3TFEAQSWstart using some globals - [55]
H4R5BHVYno more Text allocations - [56]
I64IPGJXavoid saving fragments in lines - [*]
3QNOKBFMbeginnings of a test harness
Change contents
- edit in text.lua at line 12
--? print('text.draw', line_index, y) - resolve order conflict in text.lua at line 12
- edit in text.lua at line 19
App.color(fg) - edit in text.lua at line 22
App.color(fg) - resurrect zombie in text.lua at line 43
App.color(fg) - edit in text.lua at line 43
local lo_px = Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, State.cursor1.pos+utf8.len(State.search_term)) - edit in text.lua at line 45[4.1893]→[4.106:106](∅→∅),[4.1893]→[4.106:106](∅→∅),[4.106]→[4.741:887](∅→∅),[4.608]→[4.741:887](∅→∅),[4.608]→[4.741:887](∅→∅)
local lo_px = Text.draw_highlight(State, line, State.left,y, pos, State.cursor1.pos, State.cursor1.pos+utf8.len(State.search_term)) - resurrect zombie in text.lua at line 45
love.graphics.print(State.search_term, State.left+lo_px,y) - resolve order conflict in text.lua at line 45
- edit in text.lua at line 48
Text.draw_cursor(State, x+Text.x(frag, State.cursor1.pos-pos+1), y, Cursor_color, fg)Text.draw_cursor(State, State.left+Text.x(f, State.cursor1.pos-pos+1), y) - resolve order conflict in text.lua at line 48[4.3671]
- edit in text.lua at line 48
Text.draw_cursor(State, State.left+Text.x(f, State.cursor1.pos-pos+1), y, Cursor_color, fg) - edit in text.lua at line 58[4.37]→[4.3770:3825](∅→∅),[4.37]→[4.3770:3825](∅→∅),[4.1351]→[4.3826:3880](∅→∅),[4.1351]→[4.3826:3880](∅→∅)
if not hide_cursor and State.search_term == nil thenText.draw_cursor(State, x, y, Cursor_color, fg) - replacement in search.lua at line 16
Text.draw_cursor(State, 25+App.width(State.search_text),y-5, Cursor_color, Text_color)Text.draw_cursor(State, 25+App.width(State.search_term),y-5)Text.draw_cursor(State, 25+App.width(State.search_term),y-5, Cursor_color, Text_color) - edit in app.lua at line 56
App.newText = love.graphics.newText - edit in app.lua at line 57
App.width = function(text) return text:getWidth() end - edit in app.lua at line 485[4.8162]→[4.8570:8726](∅→∅),[4.8162]→[4.8570:8726](∅→∅),[4.60904]→[4.2268:2330](∅→∅),[4.60904]→[4.2268:2330](∅→∅),[4.60904]→[4.2268:2330](∅→∅)
App.open_for_reading = function(filename) return io.open(filename, 'r') endApp.open_for_writing = function(filename) return io.open(filename, 'w') endlocal stack_trace = debug.traceback('', --[[stack frame]]5) - resolve order conflict in app.lua at line 485[4.61192]