feat(session): restore the last session from a keybinding
Besides the --session=last startup option, the saved state can now be brought back in a running kitty with restore_last_session, mapped to kitty_mod+alt+r. The option types are regenerated so the shortcut is actually part of the default configuration.
This commit is contained in:
7 files changed
+62
-1
No files matched your search
@@ -4649,6 +4649,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')
|
||||
|
||||
|
||||
Reference in new issue
Block a user