much simpler

[?]
Jun 20, 2022, 6:58 PM
AVLAYODPMKCDBUFJSTGNUXIK74V3NDCBH55DBBFTNVBMFY6I7BCAC

Dependencies

  • [2] EMHRPJ3R no, that's not right
  • [3] X75QPYVW move Selection1 clearing past business logic
  • [4] XDB5D7H7 some early returns should be asserts
  • [5] KOYAJWE4 extract a couple more methods
  • [6] XNFTJHC4 split keyboard handling between Text and Drawing
  • [7] JCSLDGAH beginnings of support for multiple shapes
  • [8] VG75U7IM bugfix: typing should delete highlighted text
  • [9] OGUV4HSA remove some memory leaks from rendered fragments
  • [10] 4KOI3E6R remove some redundant checks
  • [11] T7SJSJIH test: undo naming a point
  • [12] 73OCE2MC after much struggle, a brute-force undo
  • [13] R6GUSTBY default font size and line-height
  • [14] 3TDOZESE extract scrolling logic out of insert_return
  • [15] AYE2VEGJ extract a couple of methods
  • [16] 2ZYV7D3W handle tab characters
  • [17] PFT5Y2ZY move
  • [18] BYG5CEMV support for naming points
  • [19] DRFE3B3Z mouse buttons are integers, not strings
  • [20] 65XHTZEK regression: couldn't do many drawing operations because line.y was reset
  • [21] ZPUQSPQP extract a few methods
  • [22] HOSPP2AN crisp font rendering
  • [23] AMSESRTH move some code
  • [24] Z4XRNDTR find text
  • [25] IRCKL6VN extract scrolling logic out of insert_at_cursor
  • [26] VJ77YABH more efficient undo/redo
  • [27] FYS7TCDW bugfix
  • [28] NQWWTGXR switch undo/redo to ctrl- hotkeys
  • [29] LS55YKGW switch copy/paste to ctrl- hotkeys
  • [30] 2RXZ3PGO beginning of a new approach to scroll+wrap
  • [31] CG3264MM move
  • [32] G6OYAYHU paste in text with M-v
  • [33] NP7PIUBT bugfix: restore state after C-f (find)
  • [34] PX7DDEMO autosave slightly less aggressively
  • [35] DHI6IJCN selecting text and deleting selections
  • [36] 4QQBMWLL regression: typing uppercase letters in text
  • [37] PHFWIFYK scroll on enter
  • [38] SN2QONLI autosave on cut/paste
  • [39] AJB4LFRB try to maintain a reasonable line width
  • [40] JFFUF5AL override mouse state lookups in tests
  • [*] BULPIBEG beginnings of a module for the text editor
  • [*] GN3IF4WF bugfix: pasting newlines
  • [*] OTIBCAUJ love2d scaffold
  • [*] AVTNUQYR basic test-enabled framework
  • [*] HRWN5V6J Devine's suggestion to try to live with just freehand

Change contents

  • edit in text.lua at line 140
    [5.1568]
    [5.1]
    -- don't depend on state of Selection1; use keychord_pressed for that
  • edit in text.lua at line 146
    [4.98][5.1174:1234](),[5.74][5.1174:1234]()
    if Selection1.line then
    Text.delete_selection()
    end
  • edit in text.lua at line 178
    [5.1504][2.748:768]()
    Selection1 = {}
  • edit in text.lua at line 189
    [5.1617][2.769:789]()
    Selection1 = {}
  • edit in text.lua at line 193
    [5.67][2.790:812]()
    Selection1 = {}
  • edit in text.lua at line 231
    [5.1843][2.813:833]()
    Selection1 = {}
  • edit in text.lua at line 235
    [5.111][2.834:856]()
    Selection1 = {}
  • edit in text.lua at line 267
    [5.2102][2.857:877]()
    Selection1 = {}
  • edit in text.lua at line 270
    [5.293][3.3:23]()
    Selection1 = {}
  • edit in text.lua at line 272
    [3.41][5.24:44](),[5.324][5.24:44]()
    Selection1 = {}
  • edit in text.lua at line 285
    [5.22][3.42:62]()
    Selection1 = {}
  • edit in text.lua at line 287
    [3.85][5.66:86](),[5.794][5.66:86]()
    Selection1 = {}
  • edit in text.lua at line 299
    [5.1152][5.108:128]()
    Selection1 = {}
  • edit in text.lua at line 301
    [5.1209][3.116:136]()
    Selection1 = {}
  • edit in text.lua at line 313
    [3.151][5.129:149](),[5.3984][5.129:149]()
    Selection1 = {}
  • edit in text.lua at line 315
    [5.9989][3.152:172]()
    Selection1 = {}
  • edit in text.lua at line 327
    [3.191][5.171:191](),[5.33][5.171:191]()
    Selection1 = {}
  • edit in text.lua at line 329
    [5.10401][3.192:212]()
    Selection1 = {}
  • edit in text.lua at line 340
    [43.188]
    [43.188]
    if Selection1.line and not App.shift_down() then
    Text.delete_selection()
    end
  • edit in main.lua at line 394
    [5.135]
    [45.1486]
    -- don't depend on state of Selection1; use keychord_pressed for that
  • edit in main.lua at line 411
    [5.649][2.883:940]()
    if not App.shift_down() then
    Selection1 = {}
    end
  • edit in main.lua at line 442
    [5.3819][2.941:961]()
    Selection1 = {}
  • edit in main.lua at line 445
    [5.4470][2.962:982]()
    Selection1 = {}
  • edit in main.lua at line 448
    [5.4615][2.983:1003]()
    Selection1 = {}
  • edit in main.lua at line 451
    [5.4795][2.1004:1024]()
    Selection1 = {}
  • edit in main.lua at line 463
    [5.359][2.1025:1045]()
    Selection1 = {}
  • edit in main.lua at line 475
    [5.46][2.1046:1066]()
    Selection1 = {}
  • edit in main.lua at line 482
    [5.173][2.1067:1087]()
    Selection1 = {}
  • edit in main.lua at line 489
    [5.716][2.1088:1108]()
    Selection1 = {}
  • edit in main.lua at line 510
    [5.1959][2.1109:1129]()
    Selection1 = {}
  • edit in main.lua at line 553
    [5.5055]
    [46.350]
    end
    if not App.shift_down() then
    Selection1 = {}