Leo's now requires only two methods from leoSessions.py: SM.save_snapshot and SM.load_snapshot. These two methods read and write json data to ~/.leo/session.leo. Issue #3409 suggests writing session data to Leo's global cache instead.
I am wondering: is there any reason to retain any of the commands defined in leoSessions.py? I think not.
Imo, leoSessions.py should contain only load_snapshot and save_snapshot. What do you say?
Edward
But if the existing commands still work, why remove them?
Someone may be using them, someone who isn't following this discussion.
...if the other commands are in there and working, might as well leave them in.
That wouldn't be featuritis since no features would be added. I suppose you could call it "conservation of features".
--
You received this message because you are subscribed to the Google Groups "leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email to leo-editor+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/leo-editor/bf675a27-7a58-42cb-8950-d8535eb38219n%40googlegroups.com.
I have not done the sessions related code yet, (i didnt even know what they were 5 minutes ago) and I do not intend if i dont have to ! haha! In fact, I intended to use the same system as in leointeg: It reopens the last Leo files you had opened when last closing vscode for a given workspace, and kept in vscode's user-data storage "object" for that workspace.( So that it feels natural to see the last Leo files you had worked on when opening a given folder (workspace) to work with in vscode. )