Merge lines.love
[?]
Apr 9, 2023, 5:57 AM
JYZKEDDGZMLIH3GHTMURYCJ6H7IHZKPG4NT2RUZXLMENPV2UTCVACDependencies
- [2]
KWIVKQQ7Merge lines.love - [3]
SDEY7LFJrename a variable - [4]
D4B52CQ2Merge lines.love - [5]
RSZD5A7Gforgot to add json.lua - [6]
3QNOKBFMbeginnings of a test harness - [7]
OGUV4HSAremove some memory leaks from rendered fragments - [8]
2CTN2IEFMerge lines.love - [9]
VHUNJHXBMerge lines.love - [10]
ORKN6EOBMerge lines.love - [11]
UN7GKYV5support hyperlinks in the source editor - [12]
VXORMHMEdelete experimental REPL - [13]
AVTNUQYRbasic test-enabled framework - [14]
KKMFQDR4editing source code from within the app - [15]
VP5KC4XZMerge lines.love - [16]
A4BSGS2CMerge lines.love - [17]
S2QMLRXLstop creating a singleton table for every word - [18]
2JBAEQHUMerge lines.love - [19]
R5QXEHUIsomebody stop me - [20]
G54H3YG2get rid of all bifold text - [21]
TLOAPLBJadd a license - [22]
ZLJYLPOTMerge lines.love - [23]
2TQUKHBCMerge lines.love - [24]
CE4LZV4Tdrop last couple of manual tests - [25]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [26]
6LJZN727handle chords - [27]
K2X6G75Zstart writing some tests for drawings - [28]
GZ5WULJVswitch source side to new screen-line-based render - [29]
K74U4BAUMerge lines.love - [30]
FS2ITYYHrecord a known issue - [31]
CQWVUCXZbugfix: syntax highlighting in source editor - [32]
TVCPXAAUrename - [33]
66X36NZNa little more prose describing manual_tests - [34]
73OCE2MCafter much struggle, a brute-force undo - [35]
4SR3Z4Y3document the version of LÖVE I've been using - [36]
T4FRZSYLdelete an ancient, unused file - [37]
XX7G2FFJintermingle freehand line drawings with text - [38]
D2GCFTTTclean up repl functionality - [39]
4YDBYBA4clean up memory leak experiments - [40]
2L5MEZV3experiment: new edit namespace - [41]
VHQCNMARseveral more modules - [42]
H4R5BHVYno more Text allocations - [43]
BULPIBEGbeginnings of a module for the text editor - [44]
MD3W5IRAnew fork: rip out drawing support - [45]
OTIBCAUJlove2d scaffold - [46]
BLWAYPKVextract a module - [47]
LXTTOB33extract a couple of files - [48]
JOPVPUSAediting source code from within the app - [49]
KMSL74GAsupport selections in the source editor - [50]
ZTZOO2OQMerge lines.love - [51]
3PSFWAILMerge lines.love
Change contents
- file deletion: source_text.lua source_text.lua
local 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)Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)endendend-- 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-- render colorized textlocal x = State.leftselect_color(frag)App.screen.print(frag, x,y)x = x+App.width(frag)end-- render cursor if necessaryfor frag in screen_line:gmatch('%S*%s*') do - replacement in source_text.lua at line 21
--? print('skipping', f)--? print('skipping', screen_line) - replacement in source_text.lua at line 24
local f = Text.screen_line(line, line_cache, i)--? print('text.draw:', f, 'at', line_index,pos, 'after', x,y)local frag_len = utf8.len(f)local 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) - replacement in source_text.lua at line 47
select_color(f)App.screen.print(f, State.left,y)-- 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 - replacement in source_text.lua at line 64
Text.draw_cursor(State, State.left+Text.x(f, State.cursor1.pos-pos+1), y)Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)