✨ 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:
Executable
+7
@@ -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:
|
||||
Reference in New Issue
Block a user