Merge text.love
[?]
Feb 10, 2023, 7:22 AM
TPGGOVD4AR6HGCFTXTHSHTDMJCQVFDVSHZTPZIOON74PSUZI7SRACDependencies
- [2]
VSJS6O4CMerge text.love - [3]
XS3PZI7GMerge lines.love - [4]
LXTTOB33extract a couple of files - [5]
4SR3Z4Y3document the version of LÖVE I've been using - [6]
STYH5IVGMerge text.love - [7]
KG7YVGVRMerge lines.love - [8]
3QNOKBFMbeginnings of a test harness - [9]
D2GCFTTTclean up repl functionality - [10]
MD3W5IRAnew fork: rip out drawing support - [11]
73OCE2MCafter much struggle, a brute-force undo - [12]
VP5KC4XZMerge lines.love - [13]
TLOAPLBJadd a license - [14]
B4FAIVRAMerge lines.love - [15]
T4FRZSYLdelete an ancient, unused file - [16]
3PSFWAILMerge lines.love - [17]
OTIBCAUJlove2d scaffold - [18]
RSZD5A7Gforgot to add json.lua - [19]
HOUCPP7PMerge text.love - [20]
BULPIBEGbeginnings of a module for the text editor - [21]
2L5MEZV3experiment: new edit namespace - [22]
GUOQRUL7Merge lines.love - [23]
4YDBYBA4clean up memory leak experiments - [24]
XX7G2FFJintermingle freehand line drawings with text - [25]
AVTNUQYRbasic test-enabled framework - [26]
OGUV4HSAremove some memory leaks from rendered fragments - [27]
TVCPXAAUrename - [28]
CE4LZV4Tdrop last couple of manual tests - [29]
KKMFQDR4editing source code from within the app - [30]
36Z442IVback to commit 8123959e52f without code editing - [31]
K2X6G75Zstart writing some tests for drawings - [32]
K74U4BAUMerge lines.love - [33]
JOPVPUSAediting source code from within the app - [34]
6LJZN727handle chords - [35]
A4BSGS2CMerge lines.love - [36]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [37]
2CTN2IEFMerge lines.love - [38]
FS2ITYYHrecord a known issue - [39]
VXORMHMEdelete experimental REPL - [40]
BLWAYPKVextract a module - [41]
VHUNJHXBMerge lines.love - [42]
VHQCNMARseveral more modules - [43]
KMSL74GAsupport selections in the source editor - [44]
DB7HJBHJMerge lines.love - [45]
W5H5YI6SMerge text.love - [46]
ZTZOO2OQMerge lines.love - [47]
R5QXEHUIsomebody stop me - [48]
ORKN6EOBMerge lines.love - [49]
C3GUE45IMerge text.love - [50]
EX43CDDIMerge text.love - [51]
ECBDENZ4Merge text.love - [52]
UAYCSFSKMerge text.love - [53]
66X36NZNa little more prose describing manual_tests - [54]
D4B52CQ2Merge lines.love - [55]
ETXNVRPTMerge lines.love
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