Merge text.love

[?]
Dec 24, 2022, 4:50 AM
4DHGKUMDTRLJHNRO5UCLE457HF3PHFQC7GMDEIFY6UYTYP45MKZAC

Dependencies

  • [2] C3GUE45I Merge text.love
  • [3] XGHCLIKB Merge lines.love
  • [4] TVCPXAAU rename
  • [5] KMSL74GA support selections in the source editor
  • [6] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [7] PX7DDEMO autosave slightly less aggressively
  • [8] VXORMHME delete experimental REPL
  • [9] MD3W5IRA new fork: rip out drawing support
  • [10] CIQN2MDE bugfix: typing a capital letter deletes selection
  • [11] TLOAPLBJ add a license
  • [12] D4B52CQ2 Merge lines.love
  • [13] APX2PY6G stop tracking wallclock time
  • [14] 4YDBYBA4 clean up memory leak experiments
  • [15] 3QNOKBFM beginnings of a test harness
  • [16] AT3LVCMP Merge text.love
  • [17] IM6GSGVZ fix some arg names
  • [18] AVTNUQYR basic test-enabled framework
  • [19] XX7G2FFJ intermingle freehand line drawings with text
  • [20] LNUHQOGH start passing in Editor_state explicitly
  • [21] BULPIBEG beginnings of a module for the text editor
  • [22] VHUNJHXB Merge lines.love
  • [23] RXNR3U5E Merge text.love
  • [24] 73OCE2MC after much struggle, a brute-force undo
  • [25] VO2ZVTWK Merge lines.love
  • [26] 2CTN2IEF Merge lines.love
  • [27] OTIBCAUJ love2d scaffold
  • [28] OGUV4HSA remove some memory leaks from rendered fragments
  • [29] 6DE7RBZ6 move mouse_released events to Drawing
  • [30] GUOQRUL7 Merge lines.love
  • [31] HRWN5V6J Devine's suggestion to try to live with just freehand
  • [32] BYG5CEMV support for naming points
  • [33] 6LJZN727 handle chords
  • [34] K2X6G75Z start writing some tests for drawings
  • [35] JOPVPUSA editing source code from within the app
  • [36] RSZD5A7G forgot to add json.lua
  • [37] T4FRZSYL delete an ancient, unused file
  • [38] BLWAYPKV extract a module
  • [39] VHQCNMAR several more modules
  • [40] JCSLDGAH beginnings of support for multiple shapes
  • [41] FYS7TCDW bugfix
  • [42] EMHRPJ3R no, that's not right
  • [43] 2Y7YH7UP infrastructure for caching LÖVE text objects
  • [44] 2CK5QI7W make love event names consistent
  • [45] KKMFQDR4 editing source code from within the app
  • [46] 66X36NZN a little more prose describing manual_tests
  • [47] IFGAJAF7 add a level of indirection to vertices of shapes
  • [48] 2L5MEZV3 experiment: new edit namespace
  • [49] TXDMRA5J bugfix: alt-tab shouldn't emit keypress events
  • [50] EF6MFB46 assume we always have a filename
  • [51] ETXNVRPT Merge lines.love
  • [52] 3PSFWAIL Merge lines.love
  • [53] FS2ITYYH record a known issue
  • [54] CE4LZV4T drop last couple of manual tests
  • [55] VP5KC4XZ Merge lines.love
  • [56] R5QXEHUI somebody stop me
  • [57] D2GCFTTT clean up repl functionality
  • [58] LXTTOB33 extract a couple of files
  • [59] 36Z442IV back to commit 8123959e52f without code editing
  • [60] ORKN6EOB Merge lines.love

Change contents

  • file deletion: source_text_tests.lua (----------)source_text_tests.lua (----------)
    [4.2][4.83739:83784](),[4.2][4.83739:83784](),[4.83784][4.3561:3561]()
    -- selection persists even after shift is released
    check_eq(Editor_state.selection1.line, 1, 'F - test_select_text/selection:line')
    check_eq(Editor_state.selection1.pos, 1, 'F - test_select_text/selection:pos')
    check_eq(Editor_state.cursor1.line, 1, 'F - test_select_text/cursor:line')
    check_eq(Editor_state.cursor1.pos, 2, 'F - test_select_text/cursor:pos')
    end
    function test_cursor_movement_without_shift_resets_selection()
    io.write('\ntest_cursor_movement_without_shift_resets_selection')
    -- display a line of text with some part selected
    App.screen.init{width=75, height=80}
    Editor_state = edit.initialize_test_state()
    Editor_state.lines = load_array{'abc'}
    Text.redraw_all(Editor_state)
    Editor_state.cursor1 = {line=1, pos=1}
    Editor_state.selection1 = {line=1, pos=2}
    Editor_state.screen_top1 = {line=1, pos=1}
    Editor_state.screen_bottom1 = {}
    edit.draw(Editor_state)
    -- press an arrow key without shift
    edit.run_after_keychord(Editor_state, 'right')
    -- no change to data, selection is reset
    check_nil(Editor_state.selection1.line, 'F - test_cursor_movement_without_shift_resets_selection')
    check_eq(Editor_state.lines[1].data, 'abc', 'F - test_cursor_movement_without_shift_resets_selection/data')
  • edit in main.lua at line 200
    [4.3121][4.7480:7520](),[4.3121][4.7480:7520]()
    function App.keyreleased(key, scancode)
  • edit in main.lua at line 204
    [4.190333][4.58:121](),[4.190333][4.58:121]()
    if run.key_release then run.key_release(key, scancode) end
  • edit in main.lua at line 216
    [4.268][2.172:172](),[4.268][3.357:357](),[4.190433][3.144:213](),[4.190433][3.144:213](),[4.190137][3.214:281](),[4.190137][3.214:281](),[4.190246][3.282:355](),[4.190246][3.282:355]()
    if source.key_release then source.key_release(key, scancode) end
    if run.mouse_press then run.mouse_press(x,y, mouse_button) end
    if source.mouse_press then source.mouse_press(x,y, mouse_button) end
  • resolve order conflict in main.lua at line 216
    [4.268]