Merge branch 'feat/session-restore'

Restore the tabs, layouts and working directories of the last session with
kitty --session=last, from state saved on exit.
This commit is contained in:
BlackAngelTV committed 2026-11-12 07:29:04 +01:00
commit d373fe5df8
9 files changed
+388 -1

No files matched your search

+17
View File
@@ -4661,6 +4661,23 @@ shortcuts. For a full description see :doc:`hints kitten </kittens/hints>`.
""") # }}}
# shortcuts.session {{{
agr('shortcuts.session', 'Sessions')
map(
'Restore the last session',
'restore_last_session --allow-fallback=shifted,ascii kitty_mod+alt+r restore_last_session',
long_text="""
Restores the tabs, windows, layouts and working directories of the session that
was saved when kitty last quit, without restarting kitty. The state is written
by :code:`quit`; see :ref:`sessions`. If there is nothing to restore, a bell is
rung instead.
""",
)
egr() # }}}
# shortcuts.misc {{{
agr('shortcuts.misc', 'Miscellaneous')