Merge text0
[?]
Apr 2, 2023, 11:50 PM
HLIF3YQENAUOE4DTSYBCDIRQVWLJ5VPVYC43OC3QP5HSHMCSVP4ACDependencies
- [2]
A3Z3S62Kget rid of dubious heuristic helper - [3]
QD4LOFQRMerge text.love - [4]
CZQ3NJ4NMerge text0 - [5]
AVTNUQYRbasic test-enabled framework - [6]
Y36LOGR5bugfix: show cursor when past end of line - [7]
MD3W5IRAnew fork: rip out drawing support - [8]
LXTTOB33extract a couple of files - [9]
7CLGG7J2test: autosave after any shape - [10]
3ZSUBI57drop some redundant args from Text.draw - [11]
H2DPLWMVsnapshot: wrapping long lines at word boundaries - [12]
CVGE3SIGI feel confident now that page-down is working. - [13]
5ZCQGZP5save 2 more alternate formats for test failures - [14]
BE3WIEVKupdate cursor in search box - [15]
Z4XRNDTRfind text - [16]
V5SYDHPQstart thinking of compute_fragments as a detail - [17]
EWMPYCDObugfix - [18]
X3F7ECSLadd state arg to some functions - [19]
ZLJYLPOTMerge lines.love - [20]
FZBXBUFFbugfix: search - [21]
PX7DDEMOautosave slightly less aggressively - [22]
LF7BWEG4group all editor globals - [23]
I64IPGJXavoid saving fragments in lines - [24]
R3KXFRZNget rid of to_text - [25]
2CTN2IEFMerge lines.love - [26]
MUJTM6REbring back a level of wrapping - [27]
ISOFHXB2App.width can no longer take a Text - [28]
HALS7E5Umore clearly skip prints before screen top - [29]
HKV72RZVbugfix: save modified files in save directory - [30]
AD34IX2Zcouple more tests - [31]
4EGQRXDAbugfix: naming points - [32]
XNFTJHC4split keyboard handling between Text and Drawing - [33]
3TFEAQSWstart using some globals - [34]
ORRSP7FVdeduce test names on failures - [35]
ZDAJXYIXremove some unnecessary work - [36]
JNJ4R56Xsupport running tests multiple times - [37]
LWPRYDLWset color for each fragment - [38]
TXHMMX25move caching behavior inside compute_fragments - [39]
KURLAXXIclean up some prints - [40]
3QMTXKWNrename - [41]
ILOA5BYFseparate data structure for each line's cache data - [42]
XUGDTYW2stop confusingly reading a global - [43]
GZ2OYPSHconfigurable colors and cursor in editor widget - [44]
36Z442IVback to commit 8123959e52f without code editing - [45]
JCXL74WVbring back everything from commit a68647ae22 - [46]
4KC7I3E2make colors easier to edit - [47]
B3IWYWSRdelete another arg that can be deduced - [48]
4VKEE43Zbugfix - [49]
2RXZ3PGObeginning of a new approach to scroll+wrap - [50]
BW2IUB3Kkeep all text cache writes inside text.lua - [51]
H4R5BHVYno more Text allocations - [52]
BULPIBEGbeginnings of a module for the text editor - [53]
OYXDYPGSget rid of debug variables - [54]
NSHI3CH5Merge text0 - [55]
TSV3KPBRtweak format of test failures - [56]
S2QMLRXLstop creating a singleton table for every word - [*]
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]