Textadept
- Home |
- Download |
- Lua API |
- Source |
- Language Modules |
- Stats |
- Wiki |
- Mailing List
Contents
_M.textadept.session
Session support for the textadept module.
Fields
DEFAULT_SESSION
(string)
The path to the default session file.
MAX_RECENT_FILES
(number)
The maximum number of files from the recent files list to save to the
session.
The default value is 10
.
SAVE_ON_QUIT
(bool)
Save the session when quitting.
The default value is true
and can be disabled by passing the command line
switch -n
or --nosession
to Textadept.
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. The default value isDEFAULT_SESSION
.
Usage:
_M.textadept.session.load(filename)
Return:
true
if the session file was opened and read;false
otherwise.
See also:
prompt_load
()
Prompts the user for a Textadept session to load.
prompt_save
()
Prompts the user to save the current Textadept session to a file.
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. The default value is either the current session file orDEFAULT_SESSION
.
Usage:
_M.textadept.session.save(filename)
See also: