Merge lines.love

[?]
Sep 15, 2023, 5:39 AM
MGJZHZC4XRDNP5U75XQRVUPKWLZYQOB3JLTSGTCMORBIII2HKHXQC

Dependencies

  • [2] C2M4RUU5 reorganize some comments
  • [3] KWHC65JI Merge lines.love
  • [4] HWTLXESC Merge lines.love
  • [5] 3SB6YT3A Merge lines.love
  • [6] CWQIPU7U always show line numbers in source editor
  • [7] 6LJZN727 handle chords
  • [8] RSZD5A7G forgot to add json.lua
  • [9] K2X6G75Z start writing some tests for drawings
  • [10] 4SR3Z4Y3 document the version of LÖVE I've been using
  • [11] VXORMHME delete experimental REPL
  • [12] J3I6DVMB drop an unused arg
  • [13] OTIBCAUJ love2d scaffold
  • [14] 2TQUKHBC Merge lines.love
  • [15] BLWAYPKV extract a module
  • [16] SDEY7LFJ rename a variable
  • [17] K74U4BAU Merge lines.love
  • [18] OB5XOXVC deemphasize the source editor
  • [19] ED4Z6ORC cleaner API for file-system access
  • [20] VHUNJHXB Merge lines.love
  • [21] G54H3YG2 get rid of all bifold text
  • [22] W5WCQNMP bugfix: Windows pushing title bar off screen
  • [23] AVTNUQYR basic test-enabled framework
  • [24] 2L5MEZV3 experiment: new edit namespace
  • [25] 66X36NZN a little more prose describing manual_tests
  • [26] 4YDBYBA4 clean up memory leak experiments
  • [27] REAIVN7W Merge lines.love
  • [28] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [29] BULPIBEG beginnings of a module for the text editor
  • [30] KMSL74GA support selections in the source editor
  • [31] N2NUGNN4 include a brief reference enabling many useful apps
  • [32] R5QXEHUI somebody stop me
  • [33] S3PNFXTB handle missing cursors in settings
  • [34] LXTTOB33 extract a couple of files
  • [35] ORKN6EOB Merge lines.love
  • [36] TLOAPLBJ add a license
  • [37] ONHKBLLC Merge lines.love
  • [38] SDO4DHNU source: load cursor position from settings
  • [39] A23MMLJH migrate old settings, attempt #3
  • [40] 3PSFWAIL Merge lines.love
  • [41] D3FLL7SL start showing source menu file navigation state graphically
  • [42] LWPFEZBI Merge lines.love
  • [43] OI4FPFIN support drawings in the source editor
  • [44] GZ5WULJV switch source side to new screen-line-based render
  • [45] JZR3QMTN Merge lines.love
  • [46] ATQO62TF Merge lines.love
  • [47] V5SYDHPQ start thinking of compute_fragments as a detail
  • [48] RQUVBX62 filter candidates in file navigator
  • [49] AOZX2G5F source: no commandline args
  • [50] KWIVKQQ7 Merge lines.love
  • [51] OGUV4HSA remove some memory leaks from rendered fragments
  • [52] LIKTH6HM update stale source X-(
  • [53] 2344TV56 Merge lines.love
  • [54] VHQCNMAR several more modules
  • [55] FS2ITYYH record a known issue
  • [56] RU4HIK43 Merge lines.love
  • [57] 73OCE2MC after much struggle, a brute-force undo
  • [58] VBU5YHLR Merge lines.love
  • [59] VP5KC4XZ Merge lines.love
  • [60] ZLJYLPOT Merge lines.love
  • [61] MD3W5IRA new fork: rip out drawing support
  • [62] JOPVPUSA editing source code from within the app
  • [63] CE4LZV4T drop last couple of manual tests
  • [64] KKMFQDR4 editing source code from within the app
  • [65] B6DS4GZC Merge lines.love
  • [66] JYZKEDDG Merge lines.love
  • [67] GX236KZG Revert "deemphasize the source editor"
  • [68] 2CTN2IEF Merge lines.love
  • [69] 3QNOKBFM beginnings of a test harness
  • [70] SGMA5JLE save the list of tests in repo
  • [71] WB6SIB7H Merge lines.love
  • [72] T4FRZSYL delete an ancient, unused file
  • [73] TVCPXAAU rename
  • [74] D2GCFTTT clean up repl functionality
  • [75] XX7G2FFJ intermingle freehand line drawings with text

Change contents

  • file deletion: source_text.lua (----------)source_text.lua (----------)
    [7.2][7.147062:147101](),[7.2][7.147062:147101](),[7.147101][7.83723:83723]()
    App.color(Line_number_color)
    love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)
    -- render link decorations
    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,
    })
    -- render any highlights
    for _,link_offsets in ipairs(line_cache.link_offsets) do
    initialize_color()
  • file deletion: source_edit.lua (----------)source_edit.lua (----------)
    [7.2][7.165725:165764](),[7.2][7.165725:165764](),[7.165764][7.152440:152440]()
    button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,0},
    icon = icon.insert_drawing,
    onpress1 = function()
    Drawing.before = snapshot(State, line_index-1, line_index)
    table.insert(State.lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
    table.insert(State.line_cache, line_index, {})
    if State.cursor1.line >= line_index then
    State.cursor1.line = State.cursor1.line+1
    end
    schedule_save(State)
    record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)})
    end,
    })
    Line_number_color = {r=0.6, g=0.6, b=0.6}
    Icon_color = {r=0.7, g=0.7, b=0.7} -- color of current mode icon in drawings
    Help_color = {r=0, g=0.5, b=0}
    Help_background_color = {r=0, g=0.5, b=0, a=0.1}
  • file deletion: source.lua (----------)source.lua (----------)
    [7.2][7.177652:177686](),[7.2][7.177652:177686](),[7.177686][7.165766:165766]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right)
    Editor_state.filename = 'run.lua'
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, settings.font_height, math.floor(settings.font_height*1.3))
    Editor_state.filename = settings.filename
    Line_number_width = 3 -- in ems
    -- called both in tests and real run
    function source.initialize_globals()
    -- tests currently mostly clear their own state
    Show_log_browser_side = false
    Focus = 'edit'
    Show_file_navigator = false
    File_navigation = {
  • edit in source_text.lua at line 15
    [7.254]
    [7.87472]
    App.color(Line_number_color)
    love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)
  • edit in source_edit.lua at line 10
    [7.152736]
    [7.16584]
    Line_number_color = {r=0.6, g=0.6, b=0.6}
  • replacement in source_edit.lua at line 172
    [7.18866][7.302:394]()
    button(State, 'draw', {x=State.left-Margin_left+4, y=y+4, w=12,h=12, color={1,1,0},
    [7.18866]
    [7.18934]
    button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,0},
  • edit in source.lua at line 4
    [7.165861]
    [7.165861]
    Line_number_width = 3 -- in ems
  • replacement in source.lua at line 129
    [7.169531][7.169531:169662]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left, right, settings.font_height, math.floor(settings.font_height*1.3))
    [7.169531]
    [7.169662]
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, settings.font_height, math.floor(settings.font_height*1.3))
  • replacement in source.lua at line 157
    [7.51][7.170251:170346](),[7.1533][7.170251:170346](),[7.170251][7.170251:170346]()
    Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)
    [7.51]
    [7.2008]
    Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right)