feat(shortcuts): bind the help panel to kitty_mod+H

Use the standard kitty modifier instead of Ctrl+H, which many terminal
programs use for backspace. The help panel now lists the binding as
kitty_mod+h.
This commit is contained in:
BlackAngelTV committed 2026-11-12 13:07:19 +01:00
1 parent 7c17b5c0ce
commit c1d4ca8c2d
6 files changed
+14 -13

No files matched your search

+5 -5
View File
@@ -10,9 +10,9 @@ Les tableaux reflètent les valeurs de `kitty/options/definition.py`. La palette
de commandes (`Ctrl+Shift+F3`) liste en direct toutes les actions, leur touche
et leur catégorie, y compris les actions sans raccourci.
> **Aide rapide** : `Ctrl+H` ouvre le panneau latéral qui liste tous les
> raccourcis, avec recherche et catégories. Dans le shell kitty, `help` fait la
> même chose.
> **Aide rapide** : `Ctrl+Shift+H` (`kitty_mod+H`) ouvre le panneau latéral qui
> liste tous les raccourcis, avec recherche et catégories. Dans le shell kitty,
> `help` fait la même chose.
## Conventions
@@ -38,7 +38,7 @@ et leur catégorie, y compris les actions sans raccourci.
| `Ctrl+Shift+Alt+V` (`kitty_mod+alt+v`) | Colle une entrée de l'historique du presse-papiers. |
| `Ctrl+Shift+Alt+F` (`kitty_mod+alt+f`) | Demande une recherche floue, puis colle l'entrée choisie. |
| `Ctrl+Shift+Alt+R` (`kitty_mod+alt+r`) | Restaure la session enregistrée à la dernière fermeture de kitty. |
| `Ctrl+H` | Ouvre le panneau latéral de tous les raccourcis. |
| `Ctrl+Shift+H` (`kitty_mod+H`) | Ouvre le panneau latéral de tous les raccourcis. |
Deux fonctions FWS ne demandent aucune touche :
@@ -285,7 +285,7 @@ avec la syntaxe `map <touche> <action>`.
Dans le shell kitty (`Ctrl+Shift+Échap`), `help` sans argument ouvre un panneau
latéral qui liste tous les raccourcis actifs, classés par catégorie, avec une
recherche rapide. Depuis un terminal : `kitty +kitten help` ; le raccourci
par défaut `Ctrl+H` ouvre le même panneau.
par défaut `Ctrl+Shift+H` (`kitty_mod+H`) ouvre le même panneau.
| Touche | Action |
| --- | --- |
+1 -1
View File
@@ -260,7 +260,7 @@ Detailed list of changes
- The kitty shell now opens a searchable, categorized keyboard shortcut panel
in a side dock when :code:`help` is run without arguments, or when
:kbd:`Ctrl+H` is pressed. The panel can also be started with
:kbd:`kitty_mod+H` is pressed. The panel can also be started with
:code:`kitty +kitten help`.
- The default :opt:`tab_title_template` now shows the abbreviated working
+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:`Ctrl+H` par défaut.
aucune action. Il est mappé sur :kbd:`kitty_mod+H` (:kbd:`Ctrl+Shift+H` par
défaut).
Utilisation
-----------
Dans le :doc:`shell kitty </shell>` (:kbd:`Ctrl+Shift+Échap`), la commande
``help`` sans argument ouvre le panneau, tout comme :kbd:`Ctrl+H` dans n'importe
quelle fenêtre ::
``help`` sans argument ouvre le panneau, tout comme :kbd:`kitty_mod+H` dans
n'importe quelle fenêtre ::
help
+2 -2
View File
@@ -4687,11 +4687,11 @@ map('Command palette', 'command_palette kitty_mod+f3 command_palette')
map(
'Keyboard shortcuts',
'keyboard_shortcuts ctrl+h launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help',
'keyboard_shortcuts kitty_mod+h launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help',
long_text="""
Open the searchable keyboard shortcuts panel in a dock at the left edge of the
current window. It can also be launched manually with :code:`kitty +kitten help`.
This takes over :kbd:`Ctrl+H`, which some programs use for backspace.
The default binding is :kbd:`kitty_mod+h` (:kbd:`Ctrl+Shift+H` by default).
""",
)
+1 -1
View File
@@ -1037,7 +1037,7 @@ defaults.map = [
# file_manager
KeyDefinition(trigger=SingleKey(mods=5, key=101), definition='launch --type=window-dock --dock-edge=left --dock-size=60 kitten file-manager'),
# keyboard_shortcuts
KeyDefinition(trigger=SingleKey(mods=4, key=104), definition='launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help'),
KeyDefinition(trigger=SingleKey(mods=5, key=104), definition='launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help'),
# toggle_fullscreen
KeyDefinition(trigger=SingleKey(mods=256, key=57374), definition='toggle_fullscreen'),
# toggle_maximized
+1 -1
View File
@@ -221,7 +221,7 @@ func shell_main(cmd *cli.Command, args []string) (int, error) {
running_shell = true
formatter = markup.New(true)
fmt.Println("Welcome to the kitty shell!")
fmt.Println("Use", formatter.Green("Ctrl+H"), "or", formatter.Green("help"), "for the keyboard shortcuts panel.")
fmt.Println("Use", formatter.Green("Ctrl+Shift+H"), "or", formatter.Green("help"), "for the keyboard shortcuts panel.")
fmt.Println("Use", formatter.Green("help <command>"), "for a command's help, or", formatter.Green("exit"), "to quit.")
if atwid := os.Getenv("KITTY_SHELL_ACTIVE_WINDOW_ID"); atwid != "" {
amsg := "Previously active window id: " + atwid