Merge text.love
[?]
Apr 9, 2023, 5:59 AM
CBTPWFGM2DOW6ZHW6NF6Y5REZBHSO5EZGSUFAYIWPRZ3RV2TZP7QCDependencies
- [2]
2CFLXLIEMerge text.love - [3]
JYZKEDDGMerge lines.love - [4]
ECBDENZ4Merge text.love - [5]
AVTNUQYRbasic test-enabled framework - [6]
36Z442IVback to commit 8123959e52f without code editing - [7]
ORKN6EOBMerge lines.love - [8]
D2GCFTTTclean up repl functionality - [9]
KWIVKQQ7Merge lines.love - [10]
2CTN2IEFMerge lines.love - [11]
2JBAEQHUMerge lines.love - [12]
RSZD5A7Gforgot to add json.lua - [13]
LXTTOB33extract a couple of files - [14]
K74U4BAUMerge lines.love - [15]
FS2ITYYHrecord a known issue - [16]
K2X6G75Zstart writing some tests for drawings - [17]
2L5MEZV3experiment: new edit namespace - [18]
3QNOKBFMbeginnings of a test harness - [19]
3G723RV5Merge text.love - [20]
BULPIBEGbeginnings of a module for the text editor - [21]
R5QXEHUIsomebody stop me - [22]
Q6RXCILQMerge text.love - [23]
ZLJYLPOTMerge lines.love - [24]
T4FRZSYLdelete an ancient, unused file - [25]
VXORMHMEdelete experimental REPL - [26]
VHQCNMARseveral more modules - [27]
A4BSGS2CMerge lines.love - [28]
4YDBYBA4clean up memory leak experiments - [29]
TLOAPLBJadd a license - [30]
CE4LZV4Tdrop last couple of manual tests - [31]
BLWAYPKVextract a module - [32]
OTIBCAUJlove2d scaffold - [33]
TVCPXAAUrename - [34]
73OCE2MCafter much struggle, a brute-force undo - [35]
ZTZOO2OQMerge lines.love - [36]
OGUV4HSAremove some memory leaks from rendered fragments - [37]
66X36NZNa little more prose describing manual_tests - [38]
VP5KC4XZMerge lines.love - [39]
4SR3Z4Y3document the version of LÖVE I've been using - [40]
D4B52CQ2Merge lines.love - [41]
O3WZWLYCMerge text.love - [42]
6LJZN727handle chords - [43]
XX7G2FFJintermingle freehand line drawings with text - [44]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [45]
VHUNJHXBMerge lines.love - [46]
2TQUKHBCMerge lines.love - [47]
3PSFWAILMerge lines.love - [48]
QD4LOFQRMerge text.love - [49]
UAYCSFSKMerge text.love - [50]
MD3W5IRAnew fork: rip out drawing support - [51]
KKMFQDR4editing source code from within the app - [52]
KMSL74GAsupport selections in the source editor - [53]
JOPVPUSAediting source code from within the app - [54]
EX43CDDIMerge text.love
Change contents
- file deletion: source_text.lua source_text.lua
Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)endendend-- render colorized textlocal x = State.leftfor frag in screen_line:gmatch('%S*%s*') doselect_color(frag)App.screen.print(frag, x,y)x = x+App.width(frag)end-- render cursor if necessarylocal screen_line = Text.screen_line(line, line_cache, i)--? print('text.draw:', screen_line, 'at', line_index,pos, 'after', x,y)local frag_len = utf8.len(screen_line)-- render any link decorationsfor _,link_offsets in ipairs(line_cache.link_offsets) dolocal s,e,filename = unpack(link_offsets)local lo, hi = Text.clip_wikiword_with_screen_line(line, line_cache, i, s, e)if lo thenbutton(State, 'link', {x=State.left+lo, y=y, w=hi-lo, h=State.line_height, color={1,1,1},icon = icon.hyperlink_decoration,onpress1 = function()if file_exists(filename) thensource.switch_to_file(filename)endend,})--? print('skipping', screen_line)else