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
This commit is contained in:
BlackAngelTV committed 2026-12-03 10:21:38 +01:00
1 parent b994ccffce
commit 365873b9bb
6 files changed
+31 -9

No files matched your search

+5
View File
@@ -268,6 +268,11 @@ Detailed list of changes
(which allows the shifted fallback), so the last definition won and the search
never opened. It is now on :kbd:`kitty_mod+alt+s`.
- The keyboard shortcuts panel moved from :kbd:`kitty_mod+h` to
:kbd:`kitty_mod+alt+h`, so that :kbd:`Ctrl+Shift+H` browses the scrollback in
a pager again with :ac:`show_scrollback`, as documented. The two actions
shared the same default trigger and the panel silently took the key over.
- 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
+4 -3
View File
@@ -6,14 +6,15 @@ Panneau d'aide aux raccourcis
Le panneau d'aide affiche tous les raccourcis clavier actifs, triés par
catégorie, avec une recherche rapide. Il s'ouvre dans un dock latéral, comme le
gestionnaire de fichiers, et reste en lecture seule : :kbd:`Entrée` ne déclenche
aucune action. Il est mappé sur :kbd:`kitty_mod+H` (:kbd:`Ctrl+Shift+H` par
défaut).
aucune action. Il est mappé sur :kbd:`kitty_mod+alt+h`
(:kbd:`Ctrl+Shift+Alt+H` par défaut), pour laisser :kbd:`kitty_mod+h` à
:ac:`show_scrollback`.
Utilisation
-----------
Dans le :doc:`shell kitty </remote-control>` (:kbd:`Ctrl+Shift+Échap`), la commande
``help`` sans argument ouvre le panneau, tout comme :kbd:`kitty_mod+H` dans
``help`` sans argument ouvre le panneau, tout comme :kbd:`kitty_mod+alt+h` dans
n'importe quelle fenêtre ::
help