Merge text.love
[?]
Mar 25, 2023, 6:41 PM
Y5XAFGMWTCVHNO4XQAHN7J2SAMNALDM7TCDGJ56HFRQCTHQ4SQ6ACDependencies
- [2]
LXFHXL2NMerge text.love - [3]
4U4VQWNYMerge lines.love - [4]
D76MS2G2Merge lines.love - [5]
BULPIBEGbeginnings of a module for the text editor - [6]
OTIBCAUJlove2d scaffold - [7]
66X36NZNa little more prose describing manual_tests - [8]
FS2ITYYHrecord a known issue - [9]
VXORMHMEdelete experimental REPL - [10]
GUOQRUL7Merge lines.love - [11]
KKMFQDR4editing source code from within the app - [12]
TVCPXAAUrename - [13]
OGUV4HSAremove some memory leaks from rendered fragments - [14]
ATQO62TFMerge lines.love - [15]
GFXWHTE6mouse wheel support - [16]
OWPI7Y4QMerge text.love - [17]
R5QXEHUIsomebody stop me - [18]
VHUNJHXBMerge lines.love - [19]
4SR3Z4Y3document the version of LÖVE I've been using - [20]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [21]
AKZWDWIAMerge lines.love - [22]
ECBDENZ4Merge text.love - [23]
3QNOKBFMbeginnings of a test harness - [24]
AVTNUQYRbasic test-enabled framework - [25]
R56CKHYZMerge text.love - [26]
4YDBYBA4clean up memory leak experiments - [27]
2CTN2IEFMerge lines.love - [28]
VOU73AK6Merge lines.love - [29]
U3MJNFUYMerge lines.love - [30]
EX43CDDIMerge text.love - [31]
JCSLDGAHbeginnings of support for multiple shapes - [32]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [33]
73OCE2MCafter much struggle, a brute-force undo - [34]
2CK5QI7Wmake love event names consistent - [35]
A4BSGS2CMerge lines.love - [36]
Q7XPSKIIMerge lines.love - [37]
UAYCSFSKMerge text.love - [38]
3QQZ7W4Ebring couple more globals back to the app level - [39]
MD3W5IRAnew fork: rip out drawing support - [40]
JOPVPUSAediting source code from within the app - [41]
D2GCFTTTclean up repl functionality - [42]
ETXNVRPTMerge lines.love - [43]
DUHVCYW5Merge text.love - [44]
3G723RV5Merge text.love - [45]
CE4LZV4Tdrop last couple of manual tests - [46]
BLWAYPKVextract a module - [47]
2TQUKHBCMerge lines.love - [48]
36Z442IVback to commit 8123959e52f without code editing - [49]
2Y7YH7UPinfrastructure for caching LÖVE text objects - [50]
VP5KC4XZMerge lines.love - [51]
TLOAPLBJadd a license - [52]
ORKN6EOBMerge lines.love - [53]
K2X6G75Zstart writing some tests for drawings - [54]
DCO5BQWVMerge lines.love - [55]
T4FRZSYLdelete an ancient, unused file - [56]
VHQCNMARseveral more modules - [57]
LXTTOB33extract a couple of files - [58]
QS3YLNKZMerge lines.love - [59]
KMSL74GAsupport selections in the source editor - [60]
ZTZOO2OQMerge lines.love - [61]
XX7G2FFJintermingle freehand line drawings with text - [62]
C3GUE45IMerge text.love - [63]
6LJZN727handle chords - [64]
XGHCLIKBMerge lines.love - [65]
K74U4BAUMerge lines.love - [66]
3PSFWAILMerge lines.love - [67]
2L5MEZV3experiment: new edit namespace - [68]
RSZD5A7Gforgot to add json.lua - [*]
AJB4LFRBtry to maintain a reasonable line width
Change contents
- file deletion: source.lua source.lua
end-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708love.window.setTitle('text.love - source')end-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708love.window.setTitle('text.love - source') - file deletion: run.lua run.lua
endfunction run.draw()edit.draw(Editor_state)endfunction run.update(dt)Cursor_time = Cursor_time + dtedit.update(Editor_state, dt)endfunction run.quit()edit.quit(Editor_state)endfunction run.settings()-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708love.window.setTitle('text.love - '..Editor_state.filename)if #arg > 1 thenprint('ignoring commandline args after '..arg[1])endif rawget(_G, 'jit') thenjit.off()jit.flush()endendfunction run.load_settings()love.graphics.setFont(love.graphics.newFont(Settings.font_height))-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708love.window.setTitle('text.love - '..Editor_state.filename) - edit in main.lua at line 56
-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708 - edit in main.lua at line 62[70.41][4.2946]
- edit in main.lua at line 147
-- keep a few blank lines around: https://merveilles.town/@akkartik/110084833821965708 - edit in main.lua at line 152
- replacement in main.lua at line 231[2.172]→[4.889:893](∅→∅),[4.889]→[4.889:893](∅→∅),[4.889]→[4.889:893](∅→∅),[4.7809]→[2.172:172](∅→∅),[4.191780]→[4.7786:7809](∅→∅),[4.7785]→[4.191774:191780](∅→∅),[4.191774]→[4.191774:191780](∅→∅),[4.190717]→[4.7652:7785](∅→∅),[4.170]→[4.190712:190717](∅→∅),[4.7651]→[4.190712:190717](∅→∅),[4.241]→[4.190712:190717](∅→∅),[4.114]→[4.115:170](∅→∅),[4.7595]→[4.114:114](∅→∅),[4.594]→[4.7521:7595](∅→∅),[4.190383]→[4.588:594](∅→∅),[4.191260]→[4.588:594](∅→∅),[4.588]→[4.588:594](∅→∅),[4.889]→[4.925:956](∅→∅),[4.925]→[4.925:956](∅→∅),[4.889]→[4.925:956](∅→∅),[4.925]→[4.925:956](∅→∅),[4.961]→[4.1021:1059](∅→∅),[4.1021]→[4.1021:1059](∅→∅),[4.961]→[4.1021:1059](∅→∅),[4.1021]→[4.1021:1059](∅→∅)
endreturn Text_cache[s]end-- use this sparinglyfunction to_text(s)if Text_cache[s] == nil thenText_cache[s] = App.newText(love.graphics.getFont(), s)endreturn edit.key_release(Editor_state, key, scancode)Cursor_time = 0 -- ensure cursor is visible immediately after it movesendif Current_app == 'run' thenelseif Current_app == 'source' then[4.466]endCursor_time = 0 -- ensure cursor is visible immediately after it movesreturn edit.key_release(Editor_state, key, scancode)end-- use this sparinglyfunction to_text(s)if Text_cache[s] == nil thenText_cache[s] = App.newText(love.graphics.getFont(), s)endreturn Text_cache[s]end