Merge lines.love
[?]
Sep 15, 2023, 5:39 AM
MGJZHZC4XRDNP5U75XQRVUPKWLZYQOB3JLTSGTCMORBIII2HKHXQCDependencies
- [2]
C2M4RUU5reorganize some comments - [3]
KWHC65JIMerge lines.love - [4]
HWTLXESCMerge lines.love - [5]
3SB6YT3AMerge lines.love - [6]
CWQIPU7Ualways show line numbers in source editor - [7]
6LJZN727handle chords - [8]
RSZD5A7Gforgot to add json.lua - [9]
K2X6G75Zstart writing some tests for drawings - [10]
4SR3Z4Y3document the version of LÖVE I've been using - [11]
VXORMHMEdelete experimental REPL - [12]
J3I6DVMBdrop an unused arg - [13]
OTIBCAUJlove2d scaffold - [14]
2TQUKHBCMerge lines.love - [15]
BLWAYPKVextract a module - [16]
SDEY7LFJrename a variable - [17]
K74U4BAUMerge lines.love - [18]
OB5XOXVCdeemphasize the source editor - [19]
ED4Z6ORCcleaner API for file-system access - [20]
VHUNJHXBMerge lines.love - [21]
G54H3YG2get rid of all bifold text - [22]
W5WCQNMPbugfix: Windows pushing title bar off screen - [23]
AVTNUQYRbasic test-enabled framework - [24]
2L5MEZV3experiment: new edit namespace - [25]
66X36NZNa little more prose describing manual_tests - [26]
4YDBYBA4clean up memory leak experiments - [27]
REAIVN7WMerge lines.love - [28]
BJ5X5O4Alet's prevent the text cursor from ever getting on a drawing - [29]
BULPIBEGbeginnings of a module for the text editor - [30]
KMSL74GAsupport selections in the source editor - [31]
N2NUGNN4include a brief reference enabling many useful apps - [32]
R5QXEHUIsomebody stop me - [33]
S3PNFXTBhandle missing cursors in settings - [34]
LXTTOB33extract a couple of files - [35]
ORKN6EOBMerge lines.love - [36]
TLOAPLBJadd a license - [37]
ONHKBLLCMerge lines.love - [38]
SDO4DHNUsource: load cursor position from settings - [39]
A23MMLJHmigrate old settings, attempt #3 - [40]
3PSFWAILMerge lines.love - [41]
D3FLL7SLstart showing source menu file navigation state graphically - [42]
LWPFEZBIMerge lines.love - [43]
OI4FPFINsupport drawings in the source editor - [44]
GZ5WULJVswitch source side to new screen-line-based render - [45]
JZR3QMTNMerge lines.love - [46]
ATQO62TFMerge lines.love - [47]
V5SYDHPQstart thinking of compute_fragments as a detail - [48]
RQUVBX62filter candidates in file navigator - [49]
AOZX2G5Fsource: no commandline args - [50]
KWIVKQQ7Merge lines.love - [51]
OGUV4HSAremove some memory leaks from rendered fragments - [52]
LIKTH6HMupdate stale source X-( - [53]
2344TV56Merge lines.love - [54]
VHQCNMARseveral more modules - [55]
FS2ITYYHrecord a known issue - [56]
RU4HIK43Merge lines.love - [57]
73OCE2MCafter much struggle, a brute-force undo - [58]
VBU5YHLRMerge lines.love - [59]
VP5KC4XZMerge lines.love - [60]
ZLJYLPOTMerge lines.love - [61]
MD3W5IRAnew fork: rip out drawing support - [62]
JOPVPUSAediting source code from within the app - [63]
CE4LZV4Tdrop last couple of manual tests - [64]
KKMFQDR4editing source code from within the app - [65]
B6DS4GZCMerge lines.love - [66]
JYZKEDDGMerge lines.love - [67]
GX236KZGRevert "deemphasize the source editor" - [68]
2CTN2IEFMerge lines.love - [69]
3QNOKBFMbeginnings of a test harness - [70]
SGMA5JLEsave the list of tests in repo - [71]
WB6SIB7HMerge lines.love - [72]
T4FRZSYLdelete an ancient, unused file - [73]
TVCPXAAUrename - [74]
D2GCFTTTclean up repl functionality - [75]
XX7G2FFJintermingle freehand line drawings with text
Change contents
- file deletion: source_text.lua source_text.lua
App.color(Line_number_color)love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y)-- render link decorationslocal s,e,filename = unpack(link_offsets)local lo, hi = Text.clip_wikiword_with_screen_line(line, line_cache, i, s, e)if lo thenbutton(State, 'link', {x=State.left+lo, y=y, w=hi-lo, h=State.line_height, color={1,1,1},icon = icon.hyperlink_decoration,onpress1 = function()if file_exists(filename) thensource.switch_to_file(filename)endend,})-- render any highlightsfor _,link_offsets in ipairs(line_cache.link_offsets) doinitialize_color() - file deletion: source_edit.lua source_edit.lua
button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,0},icon = icon.insert_drawing,onpress1 = function()Drawing.before = snapshot(State, line_index-1, line_index)table.insert(State.lines, line_index, {mode='drawing', y=y, h=256/2, points={}, shapes={}, pending={}})table.insert(State.line_cache, line_index, {})if State.cursor1.line >= line_index thenState.cursor1.line = State.cursor1.line+1endschedule_save(State)record_undo_event(State, {before=Drawing.before, after=snapshot(State, line_index-1, line_index+1)})end,})Line_number_color = {r=0.6, g=0.6, b=0.6}Icon_color = {r=0.7, g=0.7, b=0.7} -- color of current mode icon in drawingsHelp_color = {r=0, g=0.5, b=0}Help_background_color = {r=0, g=0.5, b=0, a=0.1} - file deletion: source.lua source.lua
Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right)Editor_state.filename = 'run.lua'Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, settings.font_height, math.floor(settings.font_height*1.3))Editor_state.filename = settings.filenameLine_number_width = 3 -- in ems-- called both in tests and real runfunction source.initialize_globals()-- tests currently mostly clear their own stateShow_log_browser_side = falseFocus = 'edit'Show_file_navigator = falseFile_navigation = { - edit in source_text.lua at line 15
App.color(Line_number_color)love.graphics.print(line_index, State.left-Line_number_width*App.width('m')+10,y) - edit in source_edit.lua at line 10
Line_number_color = {r=0.6, g=0.6, b=0.6} - replacement in source_edit.lua at line 172
button(State, 'draw', {x=State.left-Margin_left+4, y=y+4, w=12,h=12, color={1,1,0},button(State, 'draw', {x=4, y=y+4, w=12,h=12, color={1,1,0}, - edit in source.lua at line 4
Line_number_width = 3 -- in ems - replacement in source.lua at line 129
Editor_state = edit.initialize_state(Margin_top, Margin_left, right, settings.font_height, math.floor(settings.font_height*1.3))Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), right, settings.font_height, math.floor(settings.font_height*1.3)) - replacement in source.lua at line 157
Editor_state = edit.initialize_state(Margin_top, Margin_left, App.screen.width-Margin_right)Editor_state = edit.initialize_state(Margin_top, Margin_left + Line_number_width*App.width('m'), App.screen.width-Margin_right)