move
[?]
May 18, 2022, 4:55 AM
I7MA5UOOU7MPBQQLOIEPV6J2MKQQ53CRPZ7PFPM75XMMC5JHACNQCDependencies
- [2]
AVQ5MC5Dfinish uppercasing all globals - [3]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [4]
MGOQ5XAVstart uppercasing globals - [5]
IYW7X3WLleft/right cursor movement, deleting characters - [6]
6PUNJS5Bbackspace - [7]
VVXVV2D2change data model; text can now have metadata - [8]
UTF73CBLreorg - [9]
3CS5KKCIup/down cursor movement - [10]
RJGZD4INbinary search to most natural up/down with proportional fonts - [*]
OTIBCAUJlove2d scaffold
Change contents
- edit in main.lua at line 273
elseif chord == 'left' thenif Cursor_pos > 1 thenCursor_pos = Cursor_pos-1endelseif chord == 'right' thenif Cursor_pos <= #Lines[Cursor_line].data thenCursor_pos = Cursor_pos+1endelseif chord == 'home' thenCursor_pos = 1elseif chord == 'end' thenCursor_pos = #Lines[Cursor_line].data+1-- transitioning between drawings and text - edit in main.lua at line 308
endelseif chord == 'left' thenif Cursor_pos > 1 thenCursor_pos = Cursor_pos-1 - edit in main.lua at line 309[3.1399]→[3.1399:1430](∅→∅),[3.1430]→[2.4080:4163](∅→∅),[2.4163]→[3.517:525](∅→∅),[3.1510]→[3.517:525](∅→∅),[3.525]→[3.159:189](∅→∅),[3.189]→[2.4164:4183](∅→∅),[2.4183]→[3.208:237](∅→∅),[3.208]→[3.208:237](∅→∅),[3.237]→[2.4184:4228](∅→∅)
elseif chord == 'right' thenif Cursor_pos <= #Lines[Cursor_line].data thenCursor_pos = Cursor_pos+1endelseif chord == 'home' thenCursor_pos = 1elseif chord == 'end' thenCursor_pos = #Lines[Cursor_line].data+1 - edit in main.lua at line 322
-- transitioning between drawings and text