longer names for indices in long loops

[?]
May 18, 2022, 2:48 AM
7IKRRESBHMYHHKW4XHUEEKHKPOBLAGZ7A7FJMRU32MTRKIV6S7GQC

Dependencies

  • [2] AVQ5MC5D finish uppercasing all globals
  • [3] V5TP27FP ctrl-+ and ctrl-- to adjust font size
  • [4] 3XD6M3CF refactor
  • [5] BJ5X5O4A let's prevent the text cursor from ever getting on a drawing
  • [6] JS6JSYOT online contextual help
  • [7] 6F6DF5T3 .
  • [8] QU7NHFOV show cursor
  • [9] JRLBUB6L more intuitive point delete from polygons
  • [10] 3CS5KKCI up/down cursor movement
  • [11] 2INHXC3K position cursor by clicking on text
  • [12] MGOQ5XAV start uppercasing globals
  • [13] XJ5J7LDI start imposing some organization
  • [14] OTIBCAUJ love2d scaffold
  • [15] ZUOL7X6V move
  • [16] JVRL5TWL store device-independent coordinates inside drawings
  • [17] FBDRL6LH delete points or shapes
  • [18] IFGAJAF7 add a level of indirection to vertices of shapes
  • [19] KCIM5UTV revert: back to freehand
  • [20] JCSLDGAH beginnings of support for multiple shapes
  • [21] WDWXNW7V slightly strange way to move points
  • [22] HWPK4SMP new mode: manhattan
  • [23] U76D4P36 fix a typo
  • [24] 3SYFA5JQ show cursor even on empty lines
  • [25] VVXVV2D2 change data model; text can now have metadata
  • [26] T76KKDWZ turn strokes into horizontal and vertical lines
  • [27] HRWN5V6J Devine's suggestion to try to live with just freehand
  • [28] HDCVGN6G save each line's y coordinate, whether it's a drawing or not
  • [29] H7OEU6WP experimental approach to combining keyboard and mouse while drawing
  • [30] 4NDYV4WD fix 2 bugs in line selection
  • [31] XX7G2FFJ intermingle freehand line drawings with text
  • [32] EDY3RQUL gracefully handle a non-existent filename at the commandline
  • [33] D2GCFTTT clean up repl functionality

Change contents

  • replacement in main.lua at line 103
    [3.58][3.212:245]()
    for i,line in ipairs(Lines) do
    [3.58]
    [2.933]
    for line_index,line in ipairs(Lines) do
  • replacement in main.lua at line 110
    [3.500][3.246:356](),[3.356][2.952:998]()
    table.insert(Lines, i, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
    if Cursor_line >= i then
    [3.500]
    [2.998]
    table.insert(Lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})
    if Cursor_line >= line_index then
  • replacement in main.lua at line 115
    [3.613][2.1050:1083]()
    if i == Cursor_line then
    [3.613]
    [3.34]
    if line_index == Cursor_line then
  • replacement in main.lua at line 126
    [2.1456][2.1456:1487]()
    if i == Cursor_line then
    [2.1456]
    [3.32]
    if line_index == Cursor_line then
  • replacement in main.lua at line 165
    [3.2][3.503:536]()
    for i,line in ipairs(Lines) do
    [3.2]
    [3.176]
    for line_index,line in ipairs(Lines) do
  • replacement in main.lua at line 169
    [2.1934][2.1934:1958]()
    Cursor_line = i
    [2.1934]
    [2.1958]
    Cursor_line = line_index
  • replacement in main.lua at line 631
    [3.473][3.906:958](),[2.5918][3.906:958](),[3.906][3.906:958]()
    local drawing,i,shape = select_shape_at_mouse()
    [2.5918]
    [3.958]
    local drawing,_,shape = select_shape_at_mouse()
  • replacement in main.lua at line 650
    [3.1525][3.40:92](),[2.5982][3.40:92](),[3.40][3.40:92]()
    local drawing,i,shape = select_shape_at_mouse()
    [2.5982]
    [3.92]
    local drawing,_,shape = select_shape_at_mouse()
  • replacement in main.lua at line 655
    [3.803][3.32:84](),[3.32][3.32:84]()
    local drawing,i,shape = select_shape_at_mouse()
    [3.803]
    [3.84]
    local drawing,_,shape = select_shape_at_mouse()
  • replacement in main.lua at line 694
    [3.873][3.873:925]()
    local drawing,i,shape = select_shape_at_mouse()
    [3.873]
    [3.925]
    local drawing,_,shape = select_shape_at_mouse()