kitty-save-session icon indicating copy to clipboard operation
kitty-save-session copied to clipboard

Allows you to save & restore kitty sessions, with all kitty OS windows, kitty tabs & kitty windows restored.

Save & Restore Kitty Sessions

:author: Duncan Lock

Allows you to save & restore kitty sessions, with all kitty OS windows, kitty tabs & kitty windows restored.

Doesn't restore OS window sizes. See here for https://github.com/dflock/window-workspace-save-restore[Window Workspace Placement Save & Restore].

Requirements

Requires python 3 and https://sw.kovidgoyal.net/kitty/[kitty].

Usage

# Dump the current kitty session:
$ kitty @ ls > kitty-dump.json
# Convert this JSON file into a kitty session file:
$ cat kitty-dump.json | python3 ./kitty-convert-dump.py > kitty-session.kitty
# Start kitty from that session file:
$ kitty --session kitty-session.kitty