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 '-ns' or '--no-session' to Textadept.
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 '-ns' or '--no-session' to Textadept.
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 '-ns' or '--no-session' to Textadept.
Functions
load (filename, only_pm) | Loads a Textadept session file. |
save (filename) | Saves a Textadept session to a file. |
Functions
- load (filename, only_pm)
-
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.
- only_pm: Flag indicating whether or not to load only the Project Manager session settings. Defaults to false.
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)