52QAGJREHPCEUJYKJFNMRFMAM3LX35GWFPXL74F2OHIKXMIN7KQAC
ET57M56P23CRZKLX3CD5JJ4IHBQYOU4ZGPW4O5ARSLL2DA66HM2QC
NCSQ5FPI5NSJR3UDSXBUHUXJ2HPEVTYEVALFYAXCPO5FKRLRY7EQC
L5XCYDKRZJ4WXDEI6IL2RW63B3VRE6NPP5DW4HVU3CHCMCZEFLIAC
R5QXEHUIZLELJGGCZAE7ATNS3CLRJ7JFRENMGH4XXH24C5WABZDQC
JOPVPUSAMMU6RFVDQR4NJC4GNNUFB7GPKVH7OS5FKCYS5QZ53VLQC
2KPJVPKBIHNRL5XGZZGGKDMK5OAENP7YUXBQMQSHBNUVLIWA4IFQC
KHPSHJN4BMTJ3CHUFQQZU7ZIQDOQDF3L5HV3TRT5OJMYICJAEB5QC
BJ5X5O4ACBBJ56LRBBSTCW6IBQP4HAEOOOPNH3SKTA4F66YTOIDAC
EWJZ6XHBINBUKIZQ3MCDG3RADOZSF3YFQVWCKQK2VJYIR5WFQBJAC
SW7BSBMJZLUDRMHO2HMCHQW6PPGCEBL4JSDTAHVYPCZLBEKY54XQC
NH322BEE4FKDRZYVCTX2AKXHTTOY2AYQAI5WQY4TRWUDWRTLG52QC
filename=absolutize(Editor_state.filename),
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)
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