Merge lines.love
[?]
Sep 11, 2022, 2:25 AM
P3K7UH5C5FPVZOYEC46WTZAVWCC6BQBKEJ5MSIWMSIHGFJ6FTT7ACDependencies
- [2]
QS3YLNKZMerge lines.love - [3]
TFM6F5ODMerge lines.love - [4]
ZJOSQFN6bugfix: path munging on Windows - [5]
TLOAPLBJadd a license - [6]
BULPIBEGbeginnings of a module for the text editor - [7]
32V6ZHQBMerge lines.love - [8]
VXORMHMEdelete experimental REPL - [9]
CQYKYJJUremember window positions across restart/ctrl+e - [10]
D4B52CQ2Merge lines.love - [11]
D2GCFTTTclean up repl functionality - [12]
VHUNJHXBMerge lines.love - [13]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [14]
FS2ITYYHrecord a known issue - [15]
K2X6G75Zstart writing some tests for drawings - [16]
CE4LZV4Tdrop last couple of manual tests - [17]
MD3W5IRAnew fork: rip out drawing support - [18]
OTIBCAUJlove2d scaffold - [19]
3QNOKBFMbeginnings of a test harness - [20]
TVCPXAAUrename - [21]
JOPVPUSAediting source code from within the app - [22]
DCO5BQWVMerge lines.love - [23]
OI4FPFINsupport drawings in the source editor - [24]
AVTNUQYRbasic test-enabled framework - [25]
VHQCNMARseveral more modules - [26]
BLWAYPKVextract a module - [27]
4YDBYBA4clean up memory leak experiments - [28]
66X36NZNa little more prose describing manual_tests - [29]
AKZWDWIAMerge lines.love - [30]
RSZD5A7Gforgot to add json.lua - [31]
2CTN2IEFMerge lines.love - [32]
6LJZN727handle chords - [33]
GUOQRUL7Merge lines.love - [34]
KMSL74GAsupport selections in the source editor - [35]
R5QXEHUIsomebody stop me - [36]
T4FRZSYLdelete an ancient, unused file - [37]
73OCE2MCafter much struggle, a brute-force undo - [38]
2L5MEZV3experiment: new edit namespace - [39]
XX7G2FFJintermingle freehand line drawings with text - [40]
LXTTOB33extract a couple of files - [41]
KKMFQDR4editing source code from within the app - [42]
OGUV4HSAremove some memory leaks from rendered fragments - [43]
X3CQLBTRset window title within each app - [44]
3PSFWAILMerge lines.love
Change contents
- file deletion: source_edit.lua source_edit.lua
filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windowsnext_save = nil,-- undohistory = {},next_history = 1,-- searchsearch_term = nil,search_text = nil,search_backup = nil, -- stuff to restore when cancelling search}return resultend -- App.initialize_state - file deletion: source.lua source.lua
local os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filenameend--? print('saving source settings', Settings.source.x, Settings.source.y, Settings.source.displayindex)return {x=Settings.source.x, y=Settings.source.y, displayindex=Settings.source.displayindex,width=App.screen.width, height=App.screen.height,font_height=Editor_state.font_height,filename=filename,screen_top=Editor_state.screen_top1, cursor=Editor_state.cursor1,show_log_browser_side=Show_log_browser_side,focus=Focus,}endfunction source.mouse_pressed(x,y, mouse_button)Cursor_time = 0 -- ensure cursor is visible immediately after it moves--? print('mouse click', x, y)--? print(Editor_state.left, Editor_state.right)--? print(Log_browser_state.left, Log_browser_state.right) - file deletion: run.lua run.lua
local os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filenameendreturn { - replacement in source_edit.lua at line 103
filename = love.filesystem.getUserDirectory()..'/lines.txt',filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows - replacement in source.lua at line 260
if filename:sub(1,1) ~= '/' thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windowslocal os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filename - replacement in run.lua at line 139
if filename:sub(1,1) ~= '/' thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windowslocal os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filename