Out of curiosity why is the function of a session considered obsolete?

This is what I have needed forever, a proper reloading session that
automatically saves and does not lose data, regardless if I might have
three drafts open that have yet to be saved to disk.

The instant I create a new document, there should be a state file saved on
the disk, that keeps the state of the open draft and relates it to an open
session.

If my power fails two seconds later I expect to be able to load Leo up and
get the exact point where I left off.

I haven't used Leo seriously for the last 5 years because of this lack of
functionality.

Mike


On Thu, Jun 29, 2023, 16:06 Edward K. Ream <[email protected]> wrote:

> Leo no longer supports --session-restore and --session-save.
> LM.scanOptions lists them as obsolete.
>
>
> But the *SessionManager* class still exists. *SM.load_session* is the
> culprit behind #3404
> <https://github.com/leo-editor/leo-editor/issues/3404>. It would be
> straightforward to fix this method, but I shall retire the entire class
> instead.
>
>
> The SessionManager supports six *session-** commands. The commands allow
> you to specify a set of files to open at startup. But listing the desired
> files (in a shell script or .cmd file) is simple and good.
>
>
> *Summary*
>
>
> The *session-** commands are absurd solutions to a non-existent problem.
> This class significantly complicates Leo's startup logic. The entire
> SessionManager class must go. Félix take note :-)
>
>
> As a side effect, Leo will no longer write *~/.leo/leo.session*.
>
>
> Your comments are welcome. Good luck arguing for this class :-)
>
>
> Edward
>
> --
> 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 [email protected].
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/leo-editor/5480a75d-ada7-4bb0-8a4b-b27c8fe5486an%40googlegroups.com
> <https://groups.google.com/d/msgid/leo-editor/5480a75d-ada7-4bb0-8a4b-b27c8fe5486an%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
>

-- 
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 [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/leo-editor/CAN%2B%2B4hFrZhEmhKD14q7hXufSTjJ95Q9QH-uESxcJgD0TmnPUeg%40mail.gmail.com.

Reply via email to