PCEXCSOW5QISRSCMUIYJCYBFEG7WSJJ6OPSMTWKH455UV76KMUQAC
Y6QTA6LF3F6YZ2CYDZ4YOQRSLRF4IQIBR55AFENOPSDZAACYOTPQC
X43ZIKR3WHHUHTIBN76H25FLACL7SMKXXHFX7GDD552UF3V2UDPAC
3XNFQDDNFGTN6ZFAB47AR6Q3663WLXDYC3K5TERYUWDM6U2FNOVAC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
KG7YVGVRDJVCKZ3SZMNWO4QGYPVOT27DH7TBQGRUMPOUDVQ6J5XQC
36Z442IVPXHZ7D2QI26YLN3TDDEMDRQ2GKBYQAD6NUHQZVCCY4VAC
BJ5X5O4ACBBJ56LRBBSTCW6IBQP4HAEOOOPNH3SKTA4F66YTOIDAC
EWJZ6XHBINBUKIZQ3MCDG3RADOZSF3YFQVWCKQK2VJYIR5WFQBJAC
SW7BSBMJZLUDRMHO2HMCHQW6PPGCEBL4JSDTAHVYPCZLBEKY54XQC
QFOQPDDW2C7TDPDNT67VU76HGZGTFXQY52R3BNONU5C4F5NYPAOQC
function absolutize(path)
if is_relative_path(path) then
return love.filesystem.getWorkingDirectory()..'/'..path -- '/' should work even on Windows
end
return path
end
function run.mouse_press(x,y, mouse_button)
filename=absolutize(Editor_state.filename),
screen_top=Editor_state.screen_top1, cursor=Editor_state.cursor1
}
end
if #arg > 0 and Editor_state.filename ~= absolutize(arg[1]) then
Editor_state.filename = arg[1]
load_from_disk(Editor_state)
Text.redraw_all(Editor_state)
Editor_state.screen_top1 = {line=1, pos=1}
Editor_state.cursor1 = {line=1, pos=1}
else
load_from_disk(Editor_state)
Text.redraw_all(Editor_state)
end
- from previous session
- Filename as absolute path
- Filename as relative path
- from defaults
- run with a filename on commandline, scroll around, quit; restart without a filename; window opens running the text editor in same position+dimensions
- run with a filename on commandline, scroll around, quit; restart with same filename; window opens running the text editor in same position+dimensions
- delete app settings, start with a filename; window opens with cursor at top of file
- run with absolute file path; quit; restart; window opens in same position+dimensions
- run with relative file path; quit; switch to new directory; restart without a filename; window opens running the same file in same position+dimensions
- run with a filename on commandline, scroll around, quit; restart without a filename; window opens in same position+dimensions
- run with a filename on commandline, scroll around, quit; restart with same filename; window opens in same position+dimensions
- run editor, scroll around, move cursor to end of some line, quit; restart with new filename; window opens running the text editor in same position+dimensions
- run editor, scroll around, move cursor to end of some line, quit; restart with new filename; window opens in same position+dimensions