Module _m.textadept.session
Session support for the textadept module.
Settings
DEFAULT_SESSION: The path to the default session file.SAVE_ON_QUIT: Save the session when quitting. Defaults to true and can be disabled by passing the command line switch '-n' or '--no-session' to Textadept.
Functions
| load (filename) | Loads a Textadept session file. |
| save (filename) | Saves a Textadept session to a file. |
Functions
- load (filename)
-
Loads a Textadept session file. Textadept restores split views, opened buffers, cursor information, and project manager details.
Parameters
- filename: The absolute path to the session file to load. Defaults to DEFAULT_SESSION if not specified.
Usage:
_m.textadept.session.load(filename)Return value:
true if the session file was opened and read; false otherwise. - save (filename)
-
Saves a Textadept session to a file. Saves split views, opened buffers, cursor information, and project manager details.
Parameters
- filename: The absolute path to the session file to save. Defaults to either the current session file or DEFAULT_SESSION if not specified.
Usage:
_m.textadept.session.save(filename)