reduce ambitions a bit: page up/down need not start screen from the middle of a line
[?]
May 21, 2022, 4:30 AM
KJKKASHZCC5JD6G6PWQ4TA42NVI2CNTAZ667GA76H272DD6KCNRQCDependencies
- [2]
PR4KIAZDfirst stab at equally hacky cursor down support - [3]
2KRK3OBVdon't rely on defaults - [4]
SVJZZDC3snapshot - no, that's all wrong - [5]
PWHZPJJMalways show current filename in window title - [6]
MGOQ5XAVstart uppercasing globals - [7]
252M2QMDforgot to move this special case out - [8]
JCSLDGAHbeginnings of support for multiple shapes - [9]
YKRF5V3Zstarting to load/save - [10]
DLQMM265scroll past first page - [11]
242L3OQXbugfix: ensure Cursor_line is always on a text line - [12]
OTIBCAUJlove2d scaffold - [13]
LUNH47XXmake text and drawings the same width - [14]
IYW7X3WLleft/right cursor movement, deleting characters - [15]
M36DBSDEbit more polish to help screen - [16]
OIB2QPRCstart remembering where the cursor is drawn in px - [17]
W4UVZETR2 regressions: - [18]
A2QPFRFJmove - [19]
AVQ5MC5Dfinish uppercasing all globals - [20]
2FBLO5FHadjust window size - [21]
WLHI7KD3new globals: draw partial screen line up top - [22]
537TQ2QNsome more logging - [23]
RCDVDFJQcomment - [*]
BULPIBEGbeginnings of a module for the text editor - [*]
XNFTJHC4split keyboard handling between Text and Drawing
Change contents
- edit in text.lua at line 28
endif y > Screen_height thenif line.screen_line_starting_pos thenBottom_screen_line_starting_pos = line.screen_line_starting_pos[#line.screen_line_starting_pos]elseBottom_screen_line_starting_pos = 1end - edit in text.lua at line 290
print('screen top before:', Screen_top_line, Top_screen_line_starting_pos) - edit in text.lua at line 292
print('scroll up preserving cursor') - edit in text.lua at line 294[2.922][26.4899]
print('screen top after:', Screen_top_line, Top_screen_line_starting_pos) - replacement in main.lua at line 41
Cursor_pos = 15 -- in Unicode codepoints, from 1 to utf8.len(line) + 1Cursor_pos = 1 -- in Unicode codepoints, from 1 to utf8.len(line) + 1 - replacement in main.lua at line 50
Top_screen_line_starting_pos = 6 -- when top of screen starts in between a wrapped lineBottom_screen_line_starting_pos = 1 -- when bottom of screen starts in between a wrapped lineTop_screen_line_starting_pos = 1 -- when top of screen starts in between a wrapped line - replacement in main.lua at line 63
--? love.window.setMode(0, 0) -- maximize--? Screen_width, Screen_height, Screen_flags = love.window.getMode()--? -- shrink slightly to account for window decoration--? Screen_width = Screen_width-100--? Screen_height = Screen_height-100Screen_width = 120Screen_height = 200love.window.setMode(0, 0) -- maximizeScreen_width, Screen_height, Screen_flags = love.window.getMode()-- shrink slightly to account for window decorationScreen_width = Screen_width-100Screen_height = Screen_height-100-- for testing line wrap--? Screen_width = 120--? Screen_height = 200 - replacement in main.lua at line 73
Line_width = 100--? Line_width = math.floor(Screen_width/2/40)*40--? Line_width = 100Line_width = math.floor(Screen_width/2/40)*40 - replacement in main.lua at line 181
Cursor_pos = 1Top_screen_line_starting_pos = 1Cursor_pos = Top_screen_line_starting_pos