Skip to content

Session plugin

Restores your working state between runs of the editor — open files, the active tab, each file's caret position and the split-view layout — so you can pick up exactly where you left off, including changes you hadn't saved.

Where to find it

The File menu:

Command Shortcut What it does
Open Recent ▸ … The last N opened files, plus Clear.
Reopen Closed Tab Ctrl+Shift+T Reopens the most recently closed file.

What it restores on startup

  • The set of open files and their tab order, with the previously active tab.
  • Each file's caret position.
  • The split-view layout — which document sits in which pane, and the panes' relative widths.
  • Unsaved changes (when enabled) — buffers with edits you hadn't saved come back as they were.

Settings

Preferences ▸ Plugins ▸ Session:

Setting Range / default Effect
Restore previously open files on startup on by default Master switch for reopening last session's files.
Number of recent files up to a fixed maximum How many entries the Open Recent menu keeps.

Unsaved changes

A group that controls keeping edited-but-unsaved buffers across runs:

Setting Range Effect
Keep unsaved changes between runs on/off Master switch for the buffer-persistence feature below.
Save unsaved buffers every 2–120 s How often unsaved buffers are snapshotted to disk.
Skip buffers larger than 64 KB – 256 MB Buffers above this size are not snapshotted (keeps the feature cheap).
Discard orphaned snapshots after 1–365 days How long a snapshot for a file you never reopened is kept before cleanup.
Include untitled buffers on/off Also persist never-saved "Untitled" buffers, not just edited files.

Closing safely

With Keep unsaved changes on, closing the whole window with unsaved edits is a supported flow — the content is snapshotted rather than prompting. Closing an individual tab still prompts, since that forfeits its snapshot. If the file on disk changed under a kept buffer, the plugin prompts to resolve the conflict on restore.