diff --git a/RACCOURCIS-CLAVIER.md b/RACCOURCIS-CLAVIER.md index 7815b77..e1ff126 100644 --- a/RACCOURCIS-CLAVIER.md +++ b/RACCOURCIS-CLAVIER.md @@ -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 `. 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 | | --- | --- | diff --git a/docs/changelog.rst b/docs/changelog.rst index e8c8b06..d4f1cb0 100644 --- a/docs/changelog.rst +++ b/docs/changelog.rst @@ -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 diff --git a/docs/kittens/help.rst b/docs/kittens/help.rst index 1a64a01..0c7604b 100644 --- a/docs/kittens/help.rst +++ b/docs/kittens/help.rst @@ -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 ` (: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 diff --git a/kitty/options/definition.py b/kitty/options/definition.py index 99c8ccb..8d73949 100644 --- a/kitty/options/definition.py +++ b/kitty/options/definition.py @@ -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). """, ) diff --git a/kitty/options/types.py b/kitty/options/types.py index f06cca5..ac16390 100644 --- a/kitty/options/types.py +++ b/kitty/options/types.py @@ -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 diff --git a/tools/cmd/at/shell.go b/tools/cmd/at/shell.go index 281bb14..2877cf4 100644 --- a/tools/cmd/at/shell.go +++ b/tools/cmd/at/shell.go @@ -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 "), "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