kovidgoyal / kitty-fosshack2024

Projects for FOSSHack 2024
GNU General Public License v3.0
9 stars 5 forks source link

Implement session save and restore for kitty #2

Open kovidgoyal opened 3 months ago

kovidgoyal commented 3 months ago

Basically save the window position, layout, tabs, scrollback, etc. and automatically restore them on restart. kitty issue: https://github.com/kovidgoyal/kitty/issues/1197

There is some prior art and partial solutions linked in that issue.

Some subtleties include when exactly to save the current state, when the quit action is triggered? When the last OS window is closed? When any OS Window is closed? Manually? All of the above?

Implementation will be purely in Python.

See the serialize_state() and as_dict() methods in various classes for how serialization should be done. See session.py for how sessions are instantiated as a starting point for how to implement state restoration.

See the Window.as_text method for how to get scrollback contents.

There should be some way to save and restore sessions manually as well.

TRHarsha commented 1 month ago

Respected Sir, My team would like to work on this in FOSHACK, please permit.

kovidgoyal commented 1 month ago

Done.

VarshaVasanth240 commented 1 month ago

Hello @kovidgoyal
our team would like to work upon this issue under FOSShack 2024 please assign this issue to us

kovidgoyal commented 1 month ago

It's already been assigned to @TRHarsha