Commit Graph
22 Commits
Author SHA1 Message Date
BlackAngelTV 408f16f798 test(docks): assert that a dock receives the clicks at any edge
CI / check (pull_request) Successful in 5m44s
The mouse handling of the docked windows had no test: the existing dock
tests only checked the regions the layout carves, and nothing checked
which window the clicks are routed to, so a click lost on a right dock
could not be caught by the test suite.

The two windows of a tab are now hit tested with their own areas, in both
orders, so the same point on a right dock and on a left dock must resolve
to the dock. The layout tests also pin the position of a right dock, which
previously only had its width and its containment checked.

Refs #44
2026-12-03 11:02:04 +01:00
BlackAngelTV 42c097c69a feat(clipboard): show the paste target and navigate the history picker
The clipboard history picker listed the entries without saying when they
were copied or which window would receive the paste, and the only way to
pick an entry was to read its hint label and type the letters, which the
picker never showed.

Each entry now carries the time it was copied and the window that will be
pasted into is named above the list, with a footer documenting the keys.
Pressing Up/Down moves the highlighted entry and Enter pastes it, through a
new --pick-from-list mode of the hints kitten that keeps the hint letters
working as before.

Fixes #49
2026-12-03 11:01:11 +01:00
BlackAngelTV 365873b9bb fix(shortcuts): stop the shortcuts panel shadowing show_scrollback
The panel was bound to kitty_mod+h, the trigger upstream gives show_scrollback,
so the last definition won: Ctrl+Shift+H stopped browsing the scrollback in a
pager while the docs and the built-in help still announced that behavior. The
panel now uses kitty_mod+alt+h and the documentation follows, with a test that
fails when two default actions claim the same trigger.

Fixes #46
2026-12-03 10:21:38 +01:00
BlackAngelTV 17462f5198 fix(search): give the in-place search a usable shortcut
kitty_mod+shift+f is the same physical key as kitty_mod+f, and
move_window_forward accepts the shifted fallback, so both definitions resolved
to the same trigger and the last one won: Ctrl+Shift+F moved the window instead
of opening the prompt, and the search had no shortcut at all. It now sits on
kitty_mod+alt+s, which no other default action claims.

Fixes #45
2026-12-03 10:21:00 +01:00
BlackAngelTV 4df542f590 feat(search): highlight the current match in its own color
Every match of the in-place search used the same mark color, so after pressing
n or N the only hint of the current match was the counter in the window title,
which is easy to miss on a short query or a dense screen. The marker now colors
the current match with the second mark color and keeps the rest on the first
one, rebuilding the marker whenever the index changes.

Fixes #51
2026-12-03 10:06:04 +01:00
BlackAngelTV f616651c49 fix(search): allow searching for a literal \c or \r
A query that starts with one of the two modifier prefixes could not be
escaped, so the text itself was unreachable: \c and \r were always consumed
as modifiers and the query ended up empty. A doubled backslash now ends the
modifier section and stands for the literal backslash, and the help line and
the docs document it.

Fixes #48
2026-12-03 10:01:34 +01:00
BlackAngelTV 603ef78a6e fix(file-manager): browse symlinked directories and expand home
Symlinked directories were listed as files, so Enter opened them in the
editor instead of browsing them. Mappings and the remote control API reach
the panel without a shell, so --start-dir now expands a leading ~ itself.
Add the missing Python integration tests for the result handler.
2026-11-26 10:17:34 +01:00
BlackAngelTV af032e3d87 style(scrollback-search): sort imports to satisfy ruff
CI / check (push) Successful in 3m26s
The lint job failed on the unsorted import blocks, which blocked the release
checks for the 0.1.7 bump.
2026-11-25 20:41:42 +01:00
BlackAngelTV 5f232ff99c feat(search): highlight and navigate scrollback matches in place
Searching the scrollback used to replace the whole screen with an external pager, losing the surrounding context. Highlight every match with a marker instead, show the [current/total] counter and provide temporary n/N/Escape bindings, restoring the previous marker and title when the search ends.
2026-11-25 20:25:36 +01:00
BlackAngelTV 05621aebd2 feat(shortcuts): add a leader key tree and palette remapping
Expose the multi-key mappings starting at the configured leader key in a
which-key panel, so that continuations are discoverable as soon as the prefix
is pressed. Both the panel and the command palette read the same structured
mapping data, and the palette can now write a new mapping for the selected
action.
2026-11-25 20:25:36 +01:00
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