You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
You can start kitty with a session file, but as far as I know, you have to write the session file by hand. It would seem that most/all the information that you'd want in a session dump are in kitty @ ls.
Describe the solution you'd like
It would be nice if there were a way to ask kitty to dump out the current session to a file. This would create a valid kitty session file that could be loaded using the --session parameter. This would close the loop on the session feature and would allow you to have your kitty session survive restarting the machine, by saving & restoring it to a file.
Describe alternatives you've considered
I guess I could write en external script that could parse the output from kitty @ ls and turn it into a session file - although I'm not sure if you can get the output from kitty @ ls in an external script?
Note that I use --single-instance for all my kitty windows, which simplifies this, I think, as it's just one instance that contains everything in the session.
The text was updated successfully, but these errors were encountered:
If anyone is interested, or comes here via google, I wrote a script which converts the output of kitty @ ls into a kitty session file, so that you can do:
# 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
Is your feature request related to a problem? Please describe.
You can start kitty with a session file, but as far as I know, you have to write the session file by hand. It would seem that most/all the information that you'd want in a session dump are in
kitty @ ls
.Describe the solution you'd like
It would be nice if there were a way to ask kitty to dump out the current session to a file. This would create a valid kitty session file that could be loaded using the
--session
parameter. This would close the loop on the session feature and would allow you to have your kitty session survive restarting the machine, by saving & restoring it to a file.Describe alternatives you've considered
I guess I could write en external script that could parse the output from
kitty @ ls
and turn it into a session file - although I'm not sure if you can get the output fromkitty @ ls
in an external script?Note that I use
--single-instance
for all my kitty windows, which simplifies this, I think, as it's just one instance that contains everything in the session.The text was updated successfully, but these errors were encountered: