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
This commit is contained in:
2024-08-02 09:02:47 -04:00
parent 1fea8e3899
commit f2ddf78fe4
4 changed files with 91 additions and 0 deletions
+7
View File
@@ -0,0 +1,7 @@
#!/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: