Merge lines.love

[?]
Sep 11, 2022, 2:25 AM
P3K7UH5C5FPVZOYEC46WTZAVWCC6BQBKEJ5MSIWMSIHGFJ6FTT7AC

Dependencies

  • [2] QS3YLNKZ Merge lines.love
  • [3] TFM6F5OD Merge lines.love
  • [4] ZJOSQFN6 bugfix: path munging on Windows
  • [5] TLOAPLBJ add a license
  • [6] BULPIBEG beginnings of a module for the text editor
  • [7] 32V6ZHQB Merge lines.love
  • [8] VXORMHME delete experimental REPL
  • [9] CQYKYJJU remember window positions across restart/ctrl+e
  • [10] D4B52CQ2 Merge lines.love
  • [11] D2GCFTTT clean up repl functionality
  • [12] VHUNJHXB Merge lines.love
  • [13] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [14] FS2ITYYH record a known issue
  • [15] K2X6G75Z start writing some tests for drawings
  • [16] CE4LZV4T drop last couple of manual tests
  • [17] MD3W5IRA new fork: rip out drawing support
  • [18] OTIBCAUJ love2d scaffold
  • [19] 3QNOKBFM beginnings of a test harness
  • [20] TVCPXAAU rename
  • [21] JOPVPUSA editing source code from within the app
  • [22] DCO5BQWV Merge lines.love
  • [23] OI4FPFIN support drawings in the source editor
  • [24] AVTNUQYR basic test-enabled framework
  • [25] VHQCNMAR several more modules
  • [26] BLWAYPKV extract a module
  • [27] 4YDBYBA4 clean up memory leak experiments
  • [28] 66X36NZN a little more prose describing manual_tests
  • [29] AKZWDWIA Merge lines.love
  • [30] RSZD5A7G forgot to add json.lua
  • [31] 2CTN2IEF Merge lines.love
  • [32] 6LJZN727 handle chords
  • [33] GUOQRUL7 Merge lines.love
  • [34] KMSL74GA support selections in the source editor
  • [35] R5QXEHUI somebody stop me
  • [36] T4FRZSYL delete an ancient, unused file
  • [37] 73OCE2MC after much struggle, a brute-force undo
  • [38] 2L5MEZV3 experiment: new edit namespace
  • [39] XX7G2FFJ intermingle freehand line drawings with text
  • [40] LXTTOB33 extract a couple of files
  • [41] KKMFQDR4 editing source code from within the app
  • [42] OGUV4HSA remove some memory leaks from rendered fragments
  • [43] X3CQLBTR set window title within each app
  • [44] 3PSFWAIL Merge lines.love

Change contents

  • file deletion: source_edit.lua (----------)source_edit.lua (----------)
    [5.2][5.165725:165764](),[5.2][5.165725:165764](),[5.165764][5.152440:152440]()
    filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows
    next_save = nil,
    -- undo
    history = {},
    next_history = 1,
    -- search
    search_term = nil,
    search_text = nil,
    search_backup = nil, -- stuff to restore when cancelling search
    }
    return result
    end -- App.initialize_state
  • file deletion: source.lua (----------)source.lua (----------)
    [5.2][5.177652:177686](),[5.2][5.177652:177686](),[5.177686][5.165766:165766]()
    local os_path_separator = package.config:sub(1,1)
    if filename:sub(1,1) ~= os_path_separator then
    filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
    end
    --? 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,
    }
    end
    function 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 (----------)
    [5.2][5.184046:184077](),[5.2][5.184046:184077](),[5.184077][5.178044:178044]()
    local os_path_separator = package.config:sub(1,1)
    if filename:sub(1,1) ~= os_path_separator then
    filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
    end
    return {
  • replacement in source_edit.lua at line 103
    [5.155094][5.155094:155159]()
    filename = love.filesystem.getUserDirectory()..'/lines.txt',
    [5.155094]
    [5.155159]
    filename = love.filesystem.getUserDirectory()..'/lines.txt', -- '/' should work even on Windows
  • replacement in source.lua at line 260
    [5.174018][5.174018:174157]()
    if filename:sub(1,1) ~= '/' then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
    [5.174018]
    [5.174157]
    local os_path_separator = package.config:sub(1,1)
    if filename:sub(1,1) ~= os_path_separator then
    filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename
  • replacement in run.lua at line 139
    [5.182432][5.182432:182571]()
    if filename:sub(1,1) ~= '/' then
    filename = love.filesystem.getWorkingDirectory()..'/'..filename -- '/' should work even on Windows
    [5.182432]
    [5.182571]
    local os_path_separator = package.config:sub(1,1)
    if filename:sub(1,1) ~= os_path_separator then
    filename = love.filesystem.getWorkingDirectory()..os_path_separator..filename