Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement session save and restore for kitty #2

Open
kovidgoyal opened this issue Jun 8, 2024 · 4 comments
Open

Implement session save and restore for kitty #2

kovidgoyal opened this issue Jun 8, 2024 · 4 comments
Assignees
Labels
medium Moderate implementation difficulty Python

Comments

@kovidgoyal
Copy link
Owner

Basically save the window position, layout, tabs, scrollback, etc. and automatically restore them on restart.
kitty issue: kovidgoyal/kitty#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.

@kovidgoyal kovidgoyal added Python medium Moderate implementation difficulty labels Jun 8, 2024
@TRHarsha
Copy link

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

@kovidgoyal
Copy link
Owner Author

Done.

@VarshaVasanth240
Copy link

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

@kovidgoyal
Copy link
Owner Author

It's already been assigned to @TRHarsha

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
medium Moderate implementation difficulty Python
Projects
None yet
Development

No branches or pull requests

3 participants