Merge lines.love
[?]
Mar 24, 2023, 4:43 AM
VOU73AK6XOVIOCY6PHUXS5RQZ2TGFEF7RYNOKFE2XSHRCZBAJMYQCDependencies
- [2]
JKENJ2UGMerge lines.love - [3]
TXI6GSQDsome minor cleanup - [4]
VP5KC4XZMerge lines.love - [5]
VHQCNMARseveral more modules - [6]
2CK5QI7Wmake love event names consistent - [7]
ETXNVRPTMerge lines.love - [8]
4SR3Z4Y3document the version of LÖVE I've been using - [9]
T4FRZSYLdelete an ancient, unused file - [10]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [11]
KKMFQDR4editing source code from within the app - [12]
73OCE2MCafter much struggle, a brute-force undo - [13]
LXTTOB33extract a couple of files - [14]
G54H3YG2get rid of all bifold text - [15]
R5QXEHUIsomebody stop me - [16]
2Y7YH7UPinfrastructure for caching LÖVE text objects - [17]
L2FWWEQLsource: remember cursor position of multiple files - [18]
ZTZOO2OQMerge lines.love - [19]
A4BSGS2CMerge lines.love - [20]
RSZD5A7Gforgot to add json.lua - [21]
LNUHQOGHstart passing in Editor_state explicitly - [22]
ORKN6EOBMerge lines.love - [23]
TLOAPLBJadd a license - [24]
GUOQRUL7Merge lines.love - [25]
4YDBYBA4clean up memory leak experiments - [26]
3PSFWAILMerge lines.love - [27]
Q7XPSKIIMerge lines.love - [28]
D4B52CQ2Merge lines.love - [29]
XX7G2FFJintermingle freehand line drawings with text - [30]
3QNOKBFMbeginnings of a test harness - [31]
KMSL74GAsupport selections in the source editor - [32]
D2GCFTTTclean up repl functionality - [33]
2TQUKHBCMerge lines.love - [34]
2L5MEZV3experiment: new edit namespace - [35]
BULPIBEGbeginnings of a module for the text editor - [36]
MD3W5IRAnew fork: rip out drawing support - [37]
JOPVPUSAediting source code from within the app - [38]
K74U4BAUMerge lines.love - [39]
JRLBUB6Lmore intuitive point delete from polygons - [40]
GFXWHTE6mouse wheel support - [41]
FS2ITYYHrecord a known issue - [42]
VXORMHMEdelete experimental REPL - [43]
66X36NZNa little more prose describing manual_tests - [44]
K2X6G75Zstart writing some tests for drawings - [45]
VHUNJHXBMerge lines.love - [46]
LF7BWEG4group all editor globals - [47]
HRWN5V6JDevine's suggestion to try to live with just freehand - [48]
BLWAYPKVextract a module - [49]
OGUV4HSAremove some memory leaks from rendered fragments - [50]
2CTN2IEFMerge lines.love - [51]
AVTNUQYRbasic test-enabled framework - [52]
TVCPXAAUrename - [53]
OI4FPFINsupport drawings in the source editor - [54]
OTIBCAUJlove2d scaffold - [55]
6LJZN727handle chords - [56]
CE4LZV4Tdrop last couple of manual tests - [*]
XGHCLIKBMerge lines.love
Change contents
- file deletion: source_edit.lua source_edit.lua
endendfunction edit.mouse_wheel_move(State, dx,dy)if dy > 0 thenState.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}for i=1,math.floor(dy) doText.up(State)endState.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}for i=1,math.floor(-dy) doText.down(State)endendelseif dy < 0 then - file deletion: source.lua source.lua
function source.mouse_wheel_move(dx,dy)Cursor_time = 0 -- ensure cursor is visible immediately after it movesif Focus == 'edit' thenreturn edit.mouse_wheel_move(Editor_state, dx,dy)elsereturn log_browser.mouse_wheel_move(Log_browser_state, dx,dy)endendfunction source.text_input(t) - file deletion: run.lua run.lua
function run.mouse_wheel_move(dx,dy)Cursor_time = 0 -- ensure cursor is visible immediately after it movesendfunction run.text_input(t)return edit.mouse_wheel_move(Editor_state, dx,dy) - file deletion: log_browser.lua log_browser.lua
function log_browser.down(State)while State.screen_top1.line < #State.lines doState.screen_top1.line = State.screen_top1.line+1if should_show(State.lines[State.screen_top1.line]) thenbreakendendendfunction log_browser.height(State, line_index)local line = State.lines[line_index]if line.data == nil then-- section headerreturn State.line_heightelseif type(line.data) == 'string' thenreturn State.line_heightelseif line.height == nil then--? print('nil line height! rendering off screen to calculate')line.height = log_render[line.data.name](line.data, State.left, App.screen.height, State.right-State.left)endreturn line.heightendendendendendfunction log_browser.up(State)while State.screen_top1.line > 1 doState.screen_top1.line = State.screen_top1.line-1if should_show(State.lines[State.screen_top1.line]) thenbreakendendendlog_browser.down(State)elseif chord == 'pageup' thenlocal y = 0while State.screen_top1.line > 1 and y < App.screen.height - 100 doState.screen_top1.line = State.screen_top1.line - 1if should_show(State.lines[State.screen_top1.line]) theny = y + log_browser.height(State, State.screen_top1.line)endendelseif chord == 'pagedown' thenlocal y = 0while State.screen_top1.line < #State.lines and y < App.screen.height - 100 doif should_show(State.lines[State.screen_top1.line]) theny = y + log_browser.height(State, State.screen_top1.line)endState.screen_top1.line = State.screen_top1.line + 1log_browser.up(State)elseif chord == 'down' thenendfunction log_browser.mouse_wheel_move(State, dx,dy)if dy > 0 thenfor i=1,math.floor(dy) dolog_browser.up(State)endfor i=1,math.floor(-dy) dolog_browser.down(State)endendendelseif dy < 0 then - edit in source_edit.lua at line 305
endendfunction edit.mouse_wheel_move(State, dx,dy)if dy > 0 thenState.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}for i=1,math.floor(dy) doText.up(State)endelseif dy < 0 thenState.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}for i=1,math.floor(-dy) doText.down(State)end - edit in source.lua at line 326
function source.mouse_wheel_move(dx,dy)Cursor_time = 0 -- ensure cursor is visible immediately after it movesif Focus == 'edit' thenreturn edit.mouse_wheel_move(Editor_state, dx,dy)elsereturn log_browser.mouse_wheel_move(Log_browser_state, dx,dy)endend - edit in run.lua at line 166
function run.mouse_wheel_move(dx,dy)Cursor_time = 0 -- ensure cursor is visible immediately after it movesreturn edit.mouse_wheel_move(Editor_state, dx,dy)end - resurrect zombie in main.lua at line 236
elseassert(false, 'unknown app "'..Current_app..'"')endend - resolve order conflict in main.lua at line 236[58.355][4.823]
- replacement in main.lua at line 241
function App.wheelmoved(dx,dy)function App.mousereleased(x,y, mouse_button) - replacement in main.lua at line 243
if run.mouse_wheel_move then run.mouse_wheel_move(dx,dy) endif run.mouse_release then run.mouse_release(x,y, mouse_button) end - replacement in main.lua at line 245
if source.mouse_wheel_move then source.mouse_wheel_move(dx,dy) endif source.mouse_release then source.mouse_release(x,y, mouse_button) end - replacement in main.lua at line 251
function App.mousereleased(x,y, mouse_button)function App.wheelmoved(dx,dy) - replacement in main.lua at line 253
if run.mouse_release then run.mouse_release(x,y, mouse_button) endif run.mouse_wheel_move then run.mouse_wheel_move(dx,dy) end - replacement in main.lua at line 255
if source.mouse_release then source.mouse_release(x,y, mouse_button) endif source.mouse_wheel_move then source.mouse_wheel_move(dx,dy) end - edit in log_browser.lua at line 264
endfunction log_browser.mouse_wheel_move(State, dx,dy)if dy > 0 thenfor i=1,math.floor(dy) dolog_browser.up(State)endelseif dy < 0 thenfor i=1,math.floor(-dy) dolog_browser.down(State)endend - replacement in log_browser.lua at line 284
while State.screen_top1.line > 1 doState.screen_top1.line = State.screen_top1.line-1if should_show(State.lines[State.screen_top1.line]) thenbreakendendlog_browser.up(State) - replacement in log_browser.lua at line 286
while State.screen_top1.line < #State.lines doState.screen_top1.line = State.screen_top1.line+1if should_show(State.lines[State.screen_top1.line]) thenbreakendendlog_browser.down(State) - edit in log_browser.lua at line 302
endendendfunction log_browser.up(State)while State.screen_top1.line > 1 doState.screen_top1.line = State.screen_top1.line-1if should_show(State.lines[State.screen_top1.line]) thenbreak - edit in log_browser.lua at line 315
function log_browser.down(State)while State.screen_top1.line < #State.lines doState.screen_top1.line = State.screen_top1.line+1if should_show(State.lines[State.screen_top1.line]) thenbreakendendend - resurrect zombie in edit.lua at line 199[4.6276]→[4.1864:2073](∅→∅),[4.6276]→[4.1864:2073](∅→∅),[4.2073]→[3.161:182](∅→∅),[4.2073]→[3.161:182](∅→∅),[3.182]→[4.2080:2225](∅→∅),[4.2080]→[4.2080:2225](∅→∅),[4.2080]→[4.2080:2225](∅→∅)
endendfunction edit.mouse_wheel_move(State, dx,dy)if dy > 0 thenState.cursor1 = {line=State.screen_top1.line, pos=State.screen_top1.pos}for i=1,math.floor(dy) doText.up(State)endelseif dy < 0 thenState.cursor1 = {line=State.screen_bottom1.line, pos=State.screen_bottom1.pos}for i=1,math.floor(-dy) doText.down(State)end - edit in edit.lua at line 200
--? print('selection:', State.selection1.line, State.selection1.pos) - edit in edit.lua at line 215
--? print('selection:', State.selection1.line, State.selection1.pos)