Merge text.love
[?]
Mar 25, 2023, 6:41 PM
Y5XAFGMWTCVHNO4XQAHN7J2SAMNALDM7TCDGJ56HFRQCTHQ4SQ6ACDependencies
- [2]
LXFHXL2NMerge text.love - [3]
4U4VQWNYMerge lines.love - [4]
ATQO62TFMerge lines.love - [5]
TVCPXAAUrename - [6]
BULPIBEGbeginnings of a module for the text editor - [7]
OTIBCAUJlove2d scaffold - [8]
R56CKHYZMerge text.love - [9]
ZTZOO2OQMerge lines.love - [10]
ORKN6EOBMerge lines.love - [11]
66X36NZNa little more prose describing manual_tests - [12]
ETXNVRPTMerge lines.love - [13]
R5QXEHUIsomebody stop me - [14]
VXORMHMEdelete experimental REPL - [15]
FS2ITYYHrecord a known issue - [16]
JOPVPUSAediting source code from within the app - [17]
GUOQRUL7Merge lines.love - [18]
3G723RV5Merge text.love - [19]
EX43CDDIMerge text.love - [20]
UAYCSFSKMerge text.love - [21]
T4FRZSYLdelete an ancient, unused file - [22]
VHQCNMARseveral more modules - [23]
2CTN2IEFMerge lines.love - [24]
U3MJNFUYMerge lines.love - [25]
BLWAYPKVextract a module - [26]
XGHCLIKBMerge lines.love - [27]
OWPI7Y4QMerge text.love - [28]
AVTNUQYRbasic test-enabled framework - [29]
MD3W5IRAnew fork: rip out drawing support - [30]
TXDMRA5Jbugfix: alt-tab shouldn't emit keypress events - [31]
K2X6G75Zstart writing some tests for drawings - [32]
2CK5QI7Wmake love event names consistent - [33]
2TQUKHBCMerge lines.love - [34]
A4BSGS2CMerge lines.love - [35]
D76MS2G2Merge lines.love - [36]
CE4LZV4Tdrop last couple of manual tests - [37]
3QQZ7W4Ebring couple more globals back to the app level - [38]
AKZWDWIAMerge lines.love - [39]
D2GCFTTTclean up repl functionality - [40]
RSZD5A7Gforgot to add json.lua - [41]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [42]
VHUNJHXBMerge lines.love - [43]
XX7G2FFJintermingle freehand line drawings with text - [44]
3PSFWAILMerge lines.love - [45]
DCO5BQWVMerge lines.love - [46]
TLOAPLBJadd a license - [47]
KKMFQDR4editing source code from within the app - [48]
36Z442IVback to commit 8123959e52f without code editing - [49]
VP5KC4XZMerge lines.love - [50]
JCSLDGAHbeginnings of support for multiple shapes - [51]
OGUV4HSAremove some memory leaks from rendered fragments - [52]
73OCE2MCafter much struggle, a brute-force undo - [53]
Q7XPSKIIMerge lines.love - [54]
VOU73AK6Merge lines.love - [55]
3QNOKBFMbeginnings of a test harness - [56]
2L5MEZV3experiment: new edit namespace - [57]
C3GUE45IMerge text.love - [58]
KMSL74GAsupport selections in the source editor - [59]
K74U4BAUMerge lines.love - [60]
2Y7YH7UPinfrastructure for caching LÖVE text objects - [61]
ECBDENZ4Merge text.love - [62]
4YDBYBA4clean up memory leak experiments - [63]
GFXWHTE6mouse wheel support - [64]
LXTTOB33extract a couple of files - [65]
4SR3Z4Y3document the version of LÖVE I've been using - [66]
6LJZN727handle chords - [67]
DUHVCYW5Merge text.love - [68]
QS3YLNKZMerge lines.love - [*]
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