Merge lines.love
[?]
Nov 19, 2022, 8:28 AM
SCOXD4EOOL76VOGQSSNYDQS4IPXJTQ7FABDLG66GLLNREYRZF5CQCDependencies
- [2]
VP5KC4XZMerge lines.love - [3]
BH7BT36Lctrl+a: select entire buffer - [4]
FS2ITYYHrecord a known issue - [5]
4YDBYBA4clean up memory leak experiments - [6]
ETXNVRPTMerge lines.love - [7]
VO2ZVTWKMerge lines.love - [8]
73OCE2MCafter much struggle, a brute-force undo - [9]
KKMFQDR4editing source code from within the app - [10]
RSZD5A7Gforgot to add json.lua - [11]
2L5MEZV3experiment: new edit namespace - [12]
MD3W5IRAnew fork: rip out drawing support - [13]
GUOQRUL7Merge lines.love - [14]
T4FRZSYLdelete an ancient, unused file - [15]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [16]
3QNOKBFMbeginnings of a test harness - [17]
32V6ZHQBMerge lines.love - [18]
AVTNUQYRbasic test-enabled framework - [19]
VXORMHMEdelete experimental REPL - [20]
VHQCNMARseveral more modules - [21]
KMSL74GAsupport selections in the source editor - [22]
K2X6G75Zstart writing some tests for drawings - [23]
BLWAYPKVextract a module - [24]
CE4LZV4Tdrop last couple of manual tests - [25]
3PSFWAILMerge lines.love - [26]
VHUNJHXBMerge lines.love - [27]
XX7G2FFJintermingle freehand line drawings with text - [28]
2CTN2IEFMerge lines.love - [29]
OTIBCAUJlove2d scaffold - [30]
6LJZN727handle chords - [31]
BULPIBEGbeginnings of a module for the text editor - [32]
OGUV4HSAremove some memory leaks from rendered fragments - [33]
OI4FPFINsupport drawings in the source editor - [34]
TLOAPLBJadd a license - [35]
LXTTOB33extract a couple of files - [36]
D4B52CQ2Merge lines.love - [37]
D2GCFTTTclean up repl functionality - [38]
RPGTBMMMMerge lines.love - [39]
TVCPXAAUrename - [40]
R5QXEHUIsomebody stop me - [41]
JOPVPUSAediting source code from within the app - [42]
VBU5YHLRMerge lines.love - [43]
66X36NZNa little more prose describing manual_tests - [44]
ATQO62TFMerge lines.love
Change contents
- file deletion: source_edit.lua source_edit.lua
elseif chord == 'C-a' thenState.selection1 = {line=1, pos=1}State.cursor1 = {line=#State.lines, pos=utf8.len(State.lines[#State.lines].data)+1, posB=nil}elseif chord == 'C-c' thenlocal s = Text.selection(State)if s thenApp.setClipboardText(s)endelseif chord == 'C-x' thenfor _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scrolllocal s = Text.cut_selection(State, State.left, State.right)if s thenApp.setClipboardText(s)endschedule_save(State)elseif chord == 'C-v' thenfor _,line_cache in ipairs(State.line_cache) do line_cache.starty = nil end -- just in case we scroll-- We don't have a good sense of when to scroll, so we'll be conservative-- and sometimes scroll when we didn't quite need to.local before_line = State.cursor1.linelocal before = snapshot(State, before_line)local clipboard_data = App.getClipboardText()for _,code in utf8.codes(clipboard_data) dolocal c = utf8.char(code)if c == '\n' thenText.insert_return(State)elseText.insert_at_cursor(State, c)endendif Text.cursor_out_of_screen(State) thenText.snap_cursor_to_bottom_of_screen(State, State.left, State.right)endschedule_save(State)record_undo_event(State, {before=before, after=snapshot(State, before_line, State.cursor1.line)})chord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) thenText.delete_selection(State, State.left, State.right)end - replacement in source_edit.lua at line 314
chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) thenchord ~= 'C-a' and chord ~= 'C-c' and chord ~= 'C-x' and chord ~= 'backspace' and backspace ~= 'delete' and not App.is_cursor_movement(chord) then - edit in source_edit.lua at line 420
elseif chord == 'C-a' thenState.selection1 = {line=1, pos=1}State.cursor1 = {line=#State.lines, pos=utf8.len(State.lines[#State.lines].data)+1, posB=nil}