Merge lines.love

[?]
Sep 3, 2022, 9:40 PM
KGBSEDPFDYJPBLXQ5KL5DTRUMXPY7DGSSKOUK4DBNSLZMXZAV3LAC

Dependencies

  • [2] VG34LDWY experiment: simple hyperlinks just to local files
  • [3] KKMFQDR4 editing source code from within the app
  • [4] YGCT2D2O start loading settings as applicable
  • [5] YT5P6TO6 bugfix: save previous file when dropping a new one on
  • [6] LF7BWEG4 group all editor globals
  • [7] OTIBCAUJ love2d scaffold
  • [8] PWHZPJJM always show current filename in window title
  • [9] 5T2E3PDV couple of bugfixes to file-handling
  • [10] AVQ5MC5D finish uppercasing all globals
  • [11] K464QQR4 more defensive resize handling
  • [12] ICIIP4DB slightly better default sizing of drawings
  • [13] HALS7E5U more clearly skip prints before screen top
  • [14] WLHI7KD3 new globals: draw partial screen line up top
  • [15] W4UVZETR 2 regressions:
  • [16] PYLBFWWE overzealous search-and-replace
  • [17] AJB4LFRB try to maintain a reasonable line width
  • [18] 2KRK3OBV don't rely on defaults
  • [19] AVTNUQYR basic test-enabled framework
  • [20] Z4KNS42N to open a file without a terminal, drag it on!
  • [*] BULPIBEG beginnings of a module for the text editor

Change contents

  • replacement in text.lua at line 44
    [2.505][2.505:580]()
    switch_to_file(filename)
    end,
    [2.505]
    [2.580]
    run.switch_to_file(filename)
    end,
  • edit in run.lua at line 123
    [3.182297]
    [3.182297]
    -- a copy of run.filedropped when given a filename
    function run.switch_to_file(filename)
    -- first make sure to save edits on any existing file
    if Editor_state.next_save then
    save_to_disk(Editor_state)
    end
    -- clear the slate for the new file
    --? print('switching to', filename)
    Editor_state.filename = filename
    load_from_disk(Editor_state)
    Text.redraw_all(Editor_state)
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.cursor1 = {line=1, pos=1}
    end
  • replacement in main.lua at line 91
    [3.187329][3.187329:187381]()
    love.window.setTitle('text.love - '..Current_app)
    [3.187329]
    [4.1139]
    love.window.setTitle('lines-and-links.love - '..Current_app)
  • replacement in main.lua at line 113
    [3.187950][3.187950:188002]()
    love.window.setTitle('text.love - '..Current_app)
    [3.187950]
    [4.440]
    love.window.setTitle('lines-and-links.love - '..Current_app)
  • edit in main.lua at line 129
    [4.188][2.597:1073]()
    -- a copy of App.filedropped when given a filename
    function switch_to_file(filename)
    -- first make sure to save edits on any existing file
    if Editor_state.next_save then
    save_to_disk(Editor_state)
    end
    -- clear the slate for the new file
    --? print('switching to', filename)
    Editor_state.filename = filename
    load_from_disk(Editor_state)
    Text.redraw_all(Editor_state)
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.cursor1 = {line=1, pos=1}
    end