Session persistence state for the Editor.
Groups the Editor's session-related fields into a focused sub-struct: the periodic save timer and the directory paths for session files and swap files. These are set once at startup and only the timer mutates during the Editor's lifetime.
All mutations go through functions on this module.
Summary
Functions
Cancels the session save timer and clears the reference.
Returns true if session persistence is enabled (session_dir is set).
Creates a new session state from startup options.
Restarts the timer: cancels any existing timer and starts a new one.
Returns keyword options for Minga.Session functions.
Starts the periodic session save timer. No-op if session_dir is nil.
Returns true if swap file recovery is enabled (swap_dir is set).
Returns keyword options for swap recovery functions.
Types
Functions
Cancels the session save timer and clears the reference.
Returns true if session persistence is enabled (session_dir is set).
Creates a new session state from startup options.
Restarts the timer: cancels any existing timer and starts a new one.
Returns keyword options for Minga.Session functions.
Starts the periodic session save timer. No-op if session_dir is nil.
Returns true if swap file recovery is enabled (swap_dir is set).
Returns keyword options for swap recovery functions.