Merge lines.love
[?]
Sep 11, 2022, 3:36 PM
C3NYQP57XGSNOG2R6MT2OIJWHVFW53VUTHOW7RVYP66OEBE6GVBQCDependencies
- [2]
DGCSQ3UZMerge lines.love - [3]
P3K7UH5CMerge lines.love - [4]
NFI42KGXmore correct absolute path detection - [5]
D4B52CQ2Merge lines.love - [6]
ZJOSQFN6bugfix: path munging on Windows - [7]
R5QXEHUIsomebody stop me - [8]
VXORMHMEdelete experimental REPL - [9]
AVTNUQYRbasic test-enabled framework - [10]
73OCE2MCafter much struggle, a brute-force undo - [11]
32V6ZHQBMerge lines.love - [12]
2CTN2IEFMerge lines.love - [13]
4YDBYBA4clean up memory leak experiments - [14]
CQYKYJJUremember window positions across restart/ctrl+e - [15]
DCO5BQWVMerge lines.love - [16]
GUOQRUL7Merge lines.love - [17]
VHUNJHXBMerge lines.love - [18]
KMSL74GAsupport selections in the source editor - [19]
RSZD5A7Gforgot to add json.lua - [20]
TLOAPLBJadd a license - [21]
2L5MEZV3experiment: new edit namespace - [22]
3QNOKBFMbeginnings of a test harness - [23]
TVCPXAAUrename - [24]
K2X6G75Zstart writing some tests for drawings - [25]
AKZWDWIAMerge lines.love - [26]
D2GCFTTTclean up repl functionality - [27]
OGUV4HSAremove some memory leaks from rendered fragments - [28]
TFM6F5ODMerge lines.love - [29]
OTIBCAUJlove2d scaffold - [30]
CE4LZV4Tdrop last couple of manual tests - [31]
KKMFQDR4editing source code from within the app - [32]
66X36NZNa little more prose describing manual_tests - [33]
YTSPVDZHfirst successful pagedown test, first bug found by test - [34]
6LJZN727handle chords - [35]
XX7G2FFJintermingle freehand line drawings with text - [36]
T4FRZSYLdelete an ancient, unused file - [37]
VHQCNMARseveral more modules - [38]
FS2ITYYHrecord a known issue - [39]
BULPIBEGbeginnings of a module for the text editor - [40]
BLWAYPKVextract a module - [41]
QYIFOHW3first test! - [42]
LXTTOB33extract a couple of files - [43]
X3CQLBTRset window title within each app - [44]
OI4FPFINsupport drawings in the source editor - [45]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [46]
MD3W5IRAnew fork: rip out drawing support - [47]
3PSFWAILMerge lines.love - [48]
JOPVPUSAediting source code from within the app
Change contents
- file deletion: source_file.lua source_file.lua
function is_absolute_path(path)local os_path_separator = package.config:sub(1,1)if os_path_separator == '/' then-- POSIX systems permit backslashes in filenamesreturn path:sub(1,1) == '/'elseif os_path_separator == '\\' thenlocal f = path:sub(1,1)return f == '/' or f == '\\'elseerror('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"')endendfunction is_relative_path(path)return not is_absolute_path(path)end - file deletion: source.lua source.lua
if is_relative_path(filename) thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windowsend--? 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
if is_relative_path(filename) thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windowsendreturn { - edit in source_file.lua at line 202[5.16388]
function is_absolute_path(path)local os_path_separator = package.config:sub(1,1)if os_path_separator == '/' then-- POSIX systems permit backslashes in filenamesreturn path:sub(1,1) == '/'elseif os_path_separator == '\\' thenlocal f = path:sub(1,1)return f == '/' or f == '\\'elseerror('What OS is this? LÖVE reports that the path separator is "'..os_path_separator..'"')endendfunction is_relative_path(path)return not is_absolute_path(path)end - replacement in source.lua at line 260
local os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filenameif is_relative_path(filename) thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows - replacement in run.lua at line 139
local os_path_separator = package.config:sub(1,1)if filename:sub(1,1) ~= os_path_separator thenfilename = love.filesystem.getWorkingDirectory()..os_path_separator..filenameif is_relative_path(filename) thenfilename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows - edit in file.lua at line 61