Merge lines.love

[?]
Apr 9, 2023, 5:57 AM
JYZKEDDGZMLIH3GHTMURYCJ6H7IHZKPG4NT2RUZXLMENPV2UTCVAC

Dependencies

  • [2] KWIVKQQ7 Merge lines.love
  • [3] SDEY7LFJ rename a variable
  • [4] D4B52CQ2 Merge lines.love
  • [5] RSZD5A7G forgot to add json.lua
  • [6] 3QNOKBFM beginnings of a test harness
  • [7] OGUV4HSA remove some memory leaks from rendered fragments
  • [8] 2CTN2IEF Merge lines.love
  • [9] VHUNJHXB Merge lines.love
  • [10] ORKN6EOB Merge lines.love
  • [11] UN7GKYV5 support hyperlinks in the source editor
  • [12] VXORMHME delete experimental REPL
  • [13] AVTNUQYR basic test-enabled framework
  • [14] KKMFQDR4 editing source code from within the app
  • [15] VP5KC4XZ Merge lines.love
  • [16] A4BSGS2C Merge lines.love
  • [17] S2QMLRXL stop creating a singleton table for every word
  • [18] 2JBAEQHU Merge lines.love
  • [19] R5QXEHUI somebody stop me
  • [20] G54H3YG2 get rid of all bifold text
  • [21] TLOAPLBJ add a license
  • [22] ZLJYLPOT Merge lines.love
  • [23] 2TQUKHBC Merge lines.love
  • [24] CE4LZV4T drop last couple of manual tests
  • [25] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [26] 6LJZN727 handle chords
  • [27] K2X6G75Z start writing some tests for drawings
  • [28] GZ5WULJV switch source side to new screen-line-based render
  • [29] K74U4BAU Merge lines.love
  • [30] FS2ITYYH record a known issue
  • [31] CQWVUCXZ bugfix: syntax highlighting in source editor
  • [32] TVCPXAAU rename
  • [33] 66X36NZN a little more prose describing manual_tests
  • [34] 73OCE2MC after much struggle, a brute-force undo
  • [35] 4SR3Z4Y3 document the version of LÖVE I've been using
  • [36] T4FRZSYL delete an ancient, unused file
  • [37] XX7G2FFJ intermingle freehand line drawings with text
  • [38] D2GCFTTT clean up repl functionality
  • [39] 4YDBYBA4 clean up memory leak experiments
  • [40] 2L5MEZV3 experiment: new edit namespace
  • [41] VHQCNMAR several more modules
  • [42] H4R5BHVY no more Text allocations
  • [43] BULPIBEG beginnings of a module for the text editor
  • [44] MD3W5IRA new fork: rip out drawing support
  • [45] OTIBCAUJ love2d scaffold
  • [46] BLWAYPKV extract a module
  • [47] LXTTOB33 extract a couple of files
  • [48] JOPVPUSA editing source code from within the app
  • [49] KMSL74GA support selections in the source editor
  • [50] ZTZOO2OQ Merge lines.love
  • [51] 3PSFWAIL Merge lines.love

Change contents

  • file deletion: source_text.lua (----------)source_text.lua (----------)
    [4.2][4.147062:147101](),[4.2][4.147062:147101](),[4.147101][4.83723:83723]()
    local screen_line = Text.screen_line(line, line_cache, i)
    --? print('text.draw:', screen_line, 'at', line_index,pos, 'after', x,y)
    local frag_len = utf8.len(screen_line)
    Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)
    end
    end
    end
    -- render any link decorations
    for _,link_offsets in ipairs(line_cache.link_offsets) do
    local s,e,filename = unpack(link_offsets)
    local lo, hi = Text.clip_wikiword_with_screen_line(line, line_cache, i, s, e)
    if lo then
    button(State, 'link', {x=State.left+lo, y=y, w=hi-lo, h=State.line_height, color={1,1,1},
    icon = icon.hyperlink_decoration,
    onpress1 = function()
    if file_exists(filename) then
    source.switch_to_file(filename)
    end
    end,
    })
    --? print('skipping', screen_line)
    else
    -- render colorized text
    local x = State.left
    select_color(frag)
    App.screen.print(frag, x,y)
    x = x+App.width(frag)
    end
    -- render cursor if necessary
    for frag in screen_line:gmatch('%S*%s*') do
  • replacement in source_text.lua at line 21
    [4.87788][4.541:572]()
    --? print('skipping', f)
    [4.87788]
    [4.87822]
    --? print('skipping', screen_line)
  • replacement in source_text.lua at line 24
    [2.456][2.456:614]()
    local f = Text.screen_line(line, line_cache, i)
    --? print('text.draw:', f, 'at', line_index,pos, 'after', x,y)
    local frag_len = utf8.len(f)
    [2.456]
    [2.614]
    local screen_line = Text.screen_line(line, line_cache, i)
    --? print('text.draw:', screen_line, 'at', line_index,pos, 'after', x,y)
    local frag_len = utf8.len(screen_line)
  • replacement in source_text.lua at line 47
    [4.88252][2.1328:1390]()
    select_color(f)
    App.screen.print(f, State.left,y)
    [4.88252]
    [4.88290]
    -- render colorized text
    local x = State.left
    for frag in screen_line:gmatch('%S*%s*') do
    select_color(frag)
    App.screen.print(frag, x,y)
    x = x+App.width(frag)
    end
  • replacement in source_text.lua at line 64
    [4.88952][2.1761:1847]()
    Text.draw_cursor(State, State.left+Text.x(f, State.cursor1.pos-pos+1), y)
    [4.88952]
    [4.89066]
    Text.draw_cursor(State, State.left+Text.x(screen_line, State.cursor1.pos-pos+1), y)