12 Commits
Author SHA1 Message Date
BlackAngelTV d373fe5df8 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.
2026-11-12 07:29:04 +01:00
BlackAngelTV 263607ab47 Merge branch 'feat/clipboard-history'
Keep an in-memory history of copied text, browsable and searchable from
keyboard shortcuts, without writing anything to disk.
2026-11-12 07:27:57 +01:00
BlackAngelTV d866fae523 Merge pull request 'feat(notifications): notify when long commands finish, with duration and exit status' (#37) from feat/cmd-finish-notifications into main
Reviewed-on: #37
2026-11-12 07:24:19 +01:00
BlackAngelTV 38ec8c86d7 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 44b9aa166e fix(clipboard): record streamed clipboard writes in the history
OSC 52 writes are committed as a chunker factory rather than bytes, so the
history silently dropped every text copy made by a program. Extract the text
from either representation, bounded so a huge write is not materialized.
2026-11-11 21:32:09 +01:00
BlackAngelTV f74d33597e test(clipboard): cover the clipboard history buffer 2026-11-11 21:05:30 +01:00
BlackAngelTV 205f01673b test(session): cover saving and restoring the last session 2026-11-11 21:03:29 +01:00
BlackAngelTV 8708aa4101 feat(notifications): show how long a command ran when it finishes
The duration was measured to decide whether a command was long enough to
warrant a notification, but it was never shown, so the notification could only
say that the command had ended. Report it next to the exit status, formatted
in milliseconds, seconds, minutes or hours depending on the length.
2026-11-11 10:45:45 +01:00
BlackAngelTV a8129b1d5d 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 d6b19f026b 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 1cfe7217f9 feat(config): add named configuration profiles
Profiles declared as `profile <name> { ... }` in kitty.conf are now collected
while the configuration is read and applied only when selected, so switching
between projects no longer requires duplicating or editing kitty.conf.

The selected profile is layered over the global configuration, meaning it only
overrides the options it declares. Selection happens with --profile or
KITTY_PROFILE, reloading keeps the active profile, and an unknown or malformed
profile is reported without blocking startup.
2026-11-07 15:53:05 +01:00
BlackAngelTV 3d174c45a4 chore: import official kitty sources from upstream
Bring the kovidgoyal/kitty codebase in as the base of FWS-Kitty, vendored at upstream commit 91fb38a without its git history.
2026-11-04 11:35:59 +01:00