faster paste

[?]
Jun 10, 2022, 9:02 PM
VC2CU2GGRIWXIFJELD5NAELDUIRY5S5LEAFJCM2A5P3CUBYF3Z3AC

Dependencies

  • [2] EV36VCVF another known issue
  • [3] WIDXZBNW experiment: extremely precise scrolling on paste
  • [4] 34TC5SYK record another known issue I don't know how to fix yet
  • [5] 3TDOZESE extract scrolling logic out of insert_return
  • [6] VJ77YABH more efficient undo/redo
  • [7] LS55YKGW switch copy/paste to ctrl- hotkeys
  • [8] A2TQYJ6J .
  • [9] 5ZFHMYQI .
  • [10] IDGP4BJZ new known issue with drawings
  • [11] 73OCE2MC after much struggle, a brute-force undo
  • [12] SR7L4QPZ revert previous commit
  • [13] IRCKL6VN extract scrolling logic out of insert_at_cursor
  • [14] 242L3OQX bugfix: ensure Cursor_line is always on a text line
  • [*] OTIBCAUJ love2d scaffold
  • [*] NQWWTGXR switch undo/redo to ctrl- hotkeys
  • [*] FS2ITYYH record a known issue

Change contents

  • edit in main.lua at line 431
    [4.620]
    [4.620]
    --? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)
  • edit in main.lua at line 436
    [3.99][4.120:242](),[4.753][4.120:242]()
    if (Cursor_y + Line_height) > App.screen.height then
    Text.snap_cursor_to_bottom_of_screen()
    end
  • edit in main.lua at line 438
    [4.802][4.821:942]()
    --? print(Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)
  • edit in main.lua at line 439
    [3.118][4.943:1256](),[4.41][4.943:1256]()
    if Cursor_y >= App.screen.height - Line_height then
    Text.populate_screen_line_starting_pos(Cursor1.line)
    Text.snap_cursor_to_bottom_of_screen()
    --? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)
    end
  • edit in main.lua at line 440
    [4.859]
    [17.638]
    end
    App.draw()
    if Cursor_y >= App.screen.height - Line_height then
    Text.populate_screen_line_starting_pos(Cursor1.line)
    Text.snap_cursor_to_bottom_of_screen()
    --? print('=>', Screen_top1.line, Screen_top1.pos, Cursor1.line, Cursor1.pos, Screen_bottom1.line, Screen_bottom1.pos)
  • replacement in README.md at line 76
    [4.15][2.18:319]()
    * Large files may grow sluggish in other ways. Pasting more than a line or two
    gets slow. I've noticed in 100KB files that closing the window can take a
    few seconds. And it seems to take longer in proportion to how far down my
    edits are. The phenomenon persists even if I take out undo history.
    [4.15]
    [4.276]
    * Large files may grow sluggish in other ways. I've noticed in 100KB files
    that closing the window can take a few seconds. And it seems to take longer
    in proportion to how far down my edits are. The phenomenon persists even if
    I take out undo history.