feat(session): restore the last session with --session=last #40

Closed
BlackAngelTV wants to merge 25 commits from feat/session-restore into main
pull from: feat/session-restore
25 Commits
Author SHA1 Message Date
BlackAngelTV dbcb364526 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.
2026-11-11 21:39:45 +01:00
BlackAngelTV d7eca9efbb fix(build): generate the config for builtin option parsers
auto_reload_config is parsed with the builtin float, which the generator
rejected because it only accepted Python functions, so regenerating the option
types after any change to the defaults was impossible.
2026-11-11 21:39:45 +01:00
BlackAngelTV 2b93f8c72b fix(session): save the last session before the windows are torn down
The save ran from the cleanup path, after the quit request had already made
the C side close every OS window, so the serialized session was always empty.
Save from the quit paths instead, where the windows still exist, and keep the
cleanup path as a no-op fallback.
2026-11-11 21:31:41 +01:00
BlackAngelTV ccccd485ce docs(session): document restoring the last session
Explain where the state is kept, that restoring is explicit and what happens
to a stale or corrupt state file, so that users know the feature exists and how
to get rid of the saved state.
2026-11-11 21:03:29 +01:00
BlackAngelTV 5fc31a0495 test(session): cover saving and restoring the last session 2026-11-11 21:03:29 +01:00
BlackAngelTV fd3b782889 feat(session): restore the saved session with --session=last 2026-11-11 21:03:29 +01:00
BlackAngelTV 9663b74488 feat(session): save the last session when kitty exits 2026-11-11 21:03:29 +01:00
BlackAngelTV 02f43b2ee9 Merge pull request 'feat(tab-bar): add command status and cwd indicators, close and new tab buttons' (#34) from feat/tab-bar-indicators into main
Reviewed-on: #34
2026-11-11 20:19:40 +01:00
BlackAngelTV 97a686f33d Merge remote-tracking branch 'origin/main' into feat/tab-bar-indicators
# Conflicts:
#	kittens/file_manager/main.go
2026-11-11 20:18:12 +01:00
BlackAngelTV 787eb26f32 Merge pull request 'docs(kittens): document the file manager panel' (#38) from docs/file-manager-reference into main
Reviewed-on: #38
2026-11-11 20:12:43 +01:00
BlackAngelTV 59f42aec03 Merge remote-tracking branch 'origin/main' into docs/file-manager-reference
# Conflicts:
#	docs/changelog.rst
#	docs/kittens/file-manager.rst
2026-11-11 20:09:08 +01:00
BlackAngelTV c45bed6a94 Merge pull request 'feat(file-manager): fuzzy search, action palette and quick open' (#39) from feat/file-manager-search into main
Reviewed-on: #39
2026-11-11 20:06:23 +01:00
BlackAngelTV 683d65455e build(docs): use the checkout tool environment when it exists
The documentation needs extensions that are not installed system-wide, so
make html failed on a fresh shell even though the project already keeps them in
the root tool environment. Falling back to sphinx-build keeps the target
working when no environment is present.
2026-11-11 19:38:09 +01:00
BlackAngelTV e215c2b8d6 docs(changelog): note the file manager search and palette 2026-11-11 19:07:03 +01:00
BlackAngelTV d2562b9418 docs(file-manager): document search, the action palette and quick open 2026-11-11 19:07:03 +01:00
BlackAngelTV 8b13806ac5 feat(file-manager): filter the listing and open files faster
The panel could only be browsed entry by entry, which is slower than cd and ls
in a large directory. Typing / now filters the listing with the same fuzzy
matcher as the command palette, typing : lists every action with its
description from a single catalog, and o/t open the selection in a new tab or
OS window. Sizes are read once when the directory is listed so that sort_by
size does not need to stat the entries again.
2026-11-11 19:07:03 +01:00
BlackAngelTV 8d481f8d1e docs(changelog): note the file manager documentation update 2026-11-11 18:59:26 +01:00
BlackAngelTV b8eb3b20c8 docs(kittens): list the file manager in the kittens overview 2026-11-11 18:59:26 +01:00
BlackAngelTV 641fe9b910 docs(kittens): document file manager shell integration and limits 2026-11-11 18:59:26 +01:00
BlackAngelTV de13151af1 fix(file-manager): open the selection with Enter instead of changing directory
Enter quit the panel and cd'ed the shell, which silently did nothing when the
panel ran in a dock, where there is no shell to move. Enter now behaves like
the right arrow and descends into a directory in place, while Ctrl+Enter keeps
the shell directory change and no longer depends on the selection.
2026-11-09 12:24:06 +01:00
BlackAngelTV fab02aa915 feat(tab-bar): add clickable close buttons to tabs
Tabs could only be closed with the keyboard or the middle mouse button, which
is not discoverable. Draw a small cross at the start of each horizontal tab,
close the tab when it is clicked, and avoid starting a drag from the button.
2026-11-09 11:14:07 +01:00
BlackAngelTV f324f5fff2 feat(tab-bar): show the new tab button by default
The + button was only visible when explicitly enabled or while dragging a
window, so new tabs could not be created from the tab bar out of the box. Show
it at rest and keep the tab bar visible with a single tab.
2026-11-09 11:14:07 +01:00
BlackAngelTV bcf3fdff7b feat(tab-bar): add command status and abbreviated cwd indicators
The tab bar only showed the window title, so it was impossible to tell at a
glance whether the last command failed or which directory a tab was in. Expose
the active window's last exit status and a compact working directory to
tab_title_template, and refresh the tab bar when a command finishes.
2026-11-09 11:14:07 +01:00
BlackAngelTV 90e6355841 Merge pull request 'Feat/file manager panel' (#32) from feat/file-manager-panel into main
Reviewed-on: #32
2026-11-09 08:52:36 +01:00
BlackAngelTV ea29472b27 Merge pull request 'feat(config): add named configuration profiles' (#33) from feat/config-profiles into main
Reviewed-on: #33
2026-11-09 08:52:24 +01:00