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:
6 files changed
+31
-9
No files matched your search
@@ -4720,11 +4720,13 @@ map('Command palette', 'command_palette kitty_mod+f3 command_palette')
|
||||
|
||||
map(
|
||||
'Keyboard shortcuts',
|
||||
'keyboard_shortcuts kitty_mod+h launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help',
|
||||
'keyboard_shortcuts kitty_mod+alt+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`.
|
||||
The default binding is :kbd:`kitty_mod+h` (:kbd:`Ctrl+Shift+H` by default).
|
||||
The default binding is :kbd:`kitty_mod+alt+h` (:kbd:`Ctrl+Shift+Alt+H` by
|
||||
default), so that :kbd:`kitty_mod+h` keeps browsing the scrollback in a pager
|
||||
with :ac:`show_scrollback`.
|
||||
""",
|
||||
)
|
||||
|
||||
|
||||
Generated
+1
-1
@@ -1041,7 +1041,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=5, key=104), definition='launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help'),
|
||||
KeyDefinition(trigger=SingleKey(mods=258, 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
|
||||
|
||||
Reference in new issue
Block a user