Merge text.love
[?]
Feb 10, 2023, 7:22 AM
TPGGOVD4AR6HGCFTXTHSHTDMJCQVFDVSHZTPZIOON74PSUZI7SRACDependencies
- [2]
VSJS6O4CMerge text.love - [3]
XS3PZI7GMerge lines.love - [4]
MD3W5IRAnew fork: rip out drawing support - [5]
KKMFQDR4editing source code from within the app - [6]
D4B52CQ2Merge lines.love - [7]
B4FAIVRAMerge lines.love - [8]
UAYCSFSKMerge text.love - [9]
OTIBCAUJlove2d scaffold - [10]
4YDBYBA4clean up memory leak experiments - [11]
EX43CDDIMerge text.love - [12]
STYH5IVGMerge text.love - [13]
2CTN2IEFMerge lines.love - [14]
DB7HJBHJMerge lines.love - [15]
73OCE2MCafter much struggle, a brute-force undo - [16]
2L5MEZV3experiment: new edit namespace - [17]
GUOQRUL7Merge lines.love - [18]
ZTZOO2OQMerge lines.love - [19]
4SR3Z4Y3document the version of LÖVE I've been using - [20]
HOUCPP7PMerge text.love - [21]
JOPVPUSAediting source code from within the app - [22]
6LJZN727handle chords - [23]
TLOAPLBJadd a license - [24]
AVTNUQYRbasic test-enabled framework - [25]
VXORMHMEdelete experimental REPL - [26]
KG7YVGVRMerge lines.love - [27]
W5H5YI6SMerge text.love - [28]
XX7G2FFJintermingle freehand line drawings with text - [29]
3QNOKBFMbeginnings of a test harness - [30]
VP5KC4XZMerge lines.love - [31]
ETXNVRPTMerge lines.love - [32]
LXTTOB33extract a couple of files - [33]
D2GCFTTTclean up repl functionality - [34]
KMSL74GAsupport selections in the source editor - [35]
A4BSGS2CMerge lines.love - [36]
TVCPXAAUrename - [37]
RSZD5A7Gforgot to add json.lua - [38]
BULPIBEGbeginnings of a module for the text editor - [39]
OGUV4HSAremove some memory leaks from rendered fragments - [40]
3PSFWAILMerge lines.love - [41]
36Z442IVback to commit 8123959e52f without code editing - [42]
ORKN6EOBMerge lines.love - [43]
C3GUE45IMerge text.love - [44]
ECBDENZ4Merge text.love - [45]
K74U4BAUMerge lines.love - [46]
FS2ITYYHrecord a known issue - [47]
VHQCNMARseveral more modules - [48]
VHUNJHXBMerge lines.love - [49]
66X36NZNa little more prose describing manual_tests - [50]
R5QXEHUIsomebody stop me - [51]
T4FRZSYLdelete an ancient, unused file - [52]
BLWAYPKVextract a module - [53]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [54]
K2X6G75Zstart writing some tests for drawings - [55]
CE4LZV4Tdrop last couple of manual tests
Change contents
- file deletion: source_edit.lua source_edit.lua
for _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scrollif chord == 'escape' thenState.search_term = nilState.search_text = nilState.cursor1 = State.search_backup.cursorState.screen_top1 = State.search_backup.screen_topState.search_backup = nilText.redraw_all(State) -- if we're scrolling, reclaim all fragments to avoid memory leakselseif chord == 'return' thenState.search_term = nilState.search_text = nilState.search_backup = nilelseif chord == 'backspace' thenlocal len = utf8.len(State.search_term)local byte_offset = Text.offset(State.search_term, len)State.search_term = string.sub(State.search_term, 1, byte_offset-1)State.search_text = nilelseif chord == 'down' thenif State.cursor1.pos thenState.cursor1.pos = State.cursor1.pos+1elseState.cursor1.posB = State.cursor1.posB+1endText.search_next(State)elseif chord == 'up' thenText.search_previous(State)endreturnelseif chord == 'C-f' thenState.search_term = ''State.search_backup = {cursor={line=State.cursor1.line, pos=State.cursor1.pos, posB=State.cursor1.posB},screen_top={line=State.screen_top1.line, pos=State.screen_top1.pos, posB=State.screen_top1.posB},}assert(State.search_text == nil)-- bifold text