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]
TFM6F5ODMerge lines.love - [6]
32V6ZHQBMerge lines.love - [7]
OTIBCAUJlove2d scaffold - [8]
X3CQLBTRset window title within each app - [9]
QYIFOHW3first test! - [10]
AKZWDWIAMerge lines.love - [11]
R5QXEHUIsomebody stop me - [12]
LXTTOB33extract a couple of files - [13]
VXORMHMEdelete experimental REPL - [14]
AVTNUQYRbasic test-enabled framework - [15]
4YDBYBA4clean up memory leak experiments - [16]
K2X6G75Zstart writing some tests for drawings - [17]
CE4LZV4Tdrop last couple of manual tests - [18]
2L5MEZV3experiment: new edit namespace - [19]
73OCE2MCafter much struggle, a brute-force undo - [20]
KKMFQDR4editing source code from within the app - [21]
3PSFWAILMerge lines.love - [22]
OI4FPFINsupport drawings in the source editor - [23]
VHUNJHXBMerge lines.love - [24]
3QNOKBFMbeginnings of a test harness - [25]
66X36NZNa little more prose describing manual_tests - [26]
T4FRZSYLdelete an ancient, unused file - [27]
GUOQRUL7Merge lines.love - [28]
RSZD5A7Gforgot to add json.lua - [29]
D2GCFTTTclean up repl functionality - [30]
VHQCNMARseveral more modules - [31]
DCO5BQWVMerge lines.love - [32]
TLOAPLBJadd a license - [33]
XX7G2FFJintermingle freehand line drawings with text - [34]
YTSPVDZHfirst successful pagedown test, first bug found by test - [35]
BLWAYPKVextract a module - [36]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [37]
BULPIBEGbeginnings of a module for the text editor - [38]
2CTN2IEFMerge lines.love - [39]
D4B52CQ2Merge lines.love - [40]
MD3W5IRAnew fork: rip out drawing support - [41]
FS2ITYYHrecord a known issue - [42]
OGUV4HSAremove some memory leaks from rendered fragments - [43]
JOPVPUSAediting source code from within the app - [44]
ZJOSQFN6bugfix: path munging on Windows - [45]
TVCPXAAUrename - [46]
6LJZN727handle chords - [47]
CQYKYJJUremember window positions across restart/ctrl+e - [48]
KMSL74GAsupport selections in the source editor
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