affordance to adjust width for word wrap
[?]
Jun 18, 2022, 4:36 AM
6J3NXBYGADKVHD53QKHUZNRO2B52DC66Y6GQT5KEH6YKVYNCCRTACDependencies
- [2]
NQKFQSZEundo creating new drawings - [3]
4J2WLDRMindent - [4]
2RXZ3PGObeginning of a new approach to scroll+wrap - [5]
Z4XRNDTRfind text - [6]
DLQMM265scroll past first page - [7]
PX7DDEMOautosave slightly less aggressively - [*]
OTIBCAUJlove2d scaffold - [*]
J2SVGR2Eexperiment: blinking cursor - [*]
73OCE2MCafter much struggle, a brute-force undo - [*]
K464QQR4more defensive resize handling - [*]
DHCLUDCW. - [*]
UWNHC4AAredo y computations - [*]
ZUOL7X6Vmove - [*]
7IKRRESBlonger names for indices in long loops - [*]
VHQCNMARseveral more modules
Change contents
- edit in main.lua at line 95
-- line-width indicatorLine_width_hover = nil - edit in main.lua at line 222
-- line-width indicatorbutton('line-width', {x=Margin_left+Line_width-4,y=Margin_top-10, w=10,h=10, color={1,1,1},icon = icon.line_width,onpress1 = function() Line_width_hover = App.getTime() end,}) - edit in main.lua at line 240
-- insert new drawing - replacement in main.lua at line 251
end})end}) - edit in main.lua at line 291
endend-- update Line_width with some hysteresis while the indicator is draggedif Line_width_hover thenif App.getTime() - Line_width_hover > 0.1 thenLine_width = App.mouse_x() - Margin_leftText.redraw_all()if App.mouse_down(1) thenLine_width_hover = App.getTime()elseLine_width_hover = nilend - edit in main.lua at line 322
-- we seem to sometimes get phantom clicks if the mouse moves down into text while adjusting line-widthif Line_width_hover thenSelection1 = {}returnend - edit in icons.lua at line 2[17.5334][17.5334]
function icon.line_width(x, y)love.graphics.setColor(0.7,0.7,0.7)love.graphics.line(x+0,y+0, x+9,y+0)love.graphics.line(x+0,y+1, x+9,y+1)love.graphics.line(x+0,y+2, x+9,y+2)love.graphics.line(x+0,y+3, x+9,y+3)love.graphics.line(x+0,y+4, x+9,y+4)love.graphics.line(x+0,y+5, x+9,y+5)love.graphics.line(x+1,y+6, x+8,y+6)love.graphics.line(x+2,y+7, x+7,y+7)love.graphics.line(x+3,y+8, x+6,y+8)love.graphics.line(x+4,y+9, x+5,y+9)end