Files
rootiest f2ddf78fe4 feat(save-session): implement session saving function
Allows saving the current session with a keypress

The session can then be restored via a right-click option in the kitty application
2024-08-02 09:02:47 -04:00

8 lines
318 B
Bash
Executable File

#!/usr/bin/env sh
# Dump the current kitty session:
kitty @ ls >~/.config/kitty/save_session/kitty-dump.json
# Convert this JSON file into a kitty session file:
cat kitty-dump.json | python3 ~/.config/kitty/save_session/kitty-convert-dump.py >~/.config/kitty/sessions/saved-session.conf
# Close the generator window: