Merge lines.love
[?]
Sep 3, 2022, 9:40 PM
KGBSEDPFDYJPBLXQ5KL5DTRUMXPY7DGSSKOUK4DBNSLZMXZAV3LACDependencies
- [2]
VG34LDWYexperiment: simple hyperlinks just to local files - [3]
KKMFQDR4editing source code from within the app - [4]
YGCT2D2Ostart loading settings as applicable - [5]
YT5P6TO6bugfix: save previous file when dropping a new one on - [6]
LF7BWEG4group all editor globals - [7]
OTIBCAUJlove2d scaffold - [8]
PWHZPJJMalways show current filename in window title - [9]
5T2E3PDVcouple of bugfixes to file-handling - [10]
AVQ5MC5Dfinish uppercasing all globals - [11]
K464QQR4more defensive resize handling - [12]
ICIIP4DBslightly better default sizing of drawings - [13]
HALS7E5Umore clearly skip prints before screen top - [14]
WLHI7KD3new globals: draw partial screen line up top - [15]
W4UVZETR2 regressions: - [16]
PYLBFWWEoverzealous search-and-replace - [17]
AJB4LFRBtry to maintain a reasonable line width - [18]
2KRK3OBVdon't rely on defaults - [19]
AVTNUQYRbasic test-enabled framework - [20]
Z4KNS42Nto open a file without a terminal, drag it on! - [*]
BULPIBEGbeginnings of a module for the text editor
Change contents
- replacement in text.lua at line 44
switch_to_file(filename)end,run.switch_to_file(filename)end, - edit in run.lua at line 123
-- a copy of run.filedropped when given a filenamefunction run.switch_to_file(filename)-- first make sure to save edits on any existing fileif Editor_state.next_save thensave_to_disk(Editor_state)end-- clear the slate for the new file--? print('switching to', filename)Editor_state.filename = filenameload_from_disk(Editor_state)Text.redraw_all(Editor_state)Editor_state.screen_top1 = {line=1, pos=1}Editor_state.cursor1 = {line=1, pos=1}end - replacement in main.lua at line 91
love.window.setTitle('text.love - '..Current_app)love.window.setTitle('lines-and-links.love - '..Current_app) - replacement in main.lua at line 113
love.window.setTitle('text.love - '..Current_app)love.window.setTitle('lines-and-links.love - '..Current_app) - edit in main.lua at line 129
-- a copy of App.filedropped when given a filenamefunction switch_to_file(filename)-- first make sure to save edits on any existing fileif Editor_state.next_save thensave_to_disk(Editor_state)end-- clear the slate for the new file--? print('switching to', filename)Editor_state.filename = filenameload_from_disk(Editor_state)Text.redraw_all(Editor_state)Editor_state.screen_top1 = {line=1, pos=1}Editor_state.cursor1 = {line=1, pos=1}end