fix(help): keep the shortcuts panel inside its dock

The action column of the panel was written with no width limit, so on a narrow
dock a long action name was cut by the edge of the panel in the middle of an
identifier, and a selected row padded with reverse video overflowed. The column
is now bounded by the room the row leaves and ellipsized with a single cell
ellipsis, the key column shrinks on very narrow docks, and the full name of the
selected action stays reachable on the help line.

Fixes #50
This commit is contained in:
BlackAngelTV committed 2026-12-03 10:16:57 +01:00
1 parent d83fbc71e3
commit 801b4a2d89
3 files changed
+145 -23

No files matched your search

+5
View File
@@ -263,6 +263,11 @@ Detailed list of changes
:kbd:`kitty_mod+H` is pressed. The panel can also be started with
:code:`kitty +kitten help`.
- The keyboard shortcuts panel ellipsizes a long action name inside its own
column instead of letting the edge of the dock cut it, shrinks its key column
on very narrow docks so that a row always fits, and shows the full name of
the selected action on the help line.
- The default :opt:`tab_title_template` now shows the abbreviated working
directory of the tab before its title, so the directory indicator of the tab
bar is visible without configuration.