fix(shortcuts): stop the shortcuts panel shadowing show_scrollback #56

Merged
BlackAngelTV merged 2 commits from fix/help-shortcut-docs into main 2026-12-03 10:21:43 +01:00
Owner

Summary

The keyboard shortcuts panel was on kitty_mod+h, the same trigger as show_scrollback, which upstream documents and maps to that key. The last definition won silently:

SingleKey(mods=5, key=104) -> ['show_scrollback', 'launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help']

Users lost the pager while the docs and the in-app help still announced Ctrl+Shift+H.

The panel now uses kitty_mod+alt+h (Ctrl+Shift+Alt+H), which is free, and show_scrollback keeps its documented key. The docs, the French cheat sheet and the option help are updated.

Changes

  • kitty/options/definition.py + kitty/options/types.py: new binding, help text explains that kitty_mod+h stays with show_scrollback.
  • docs/kittens/help.rst, RACCOURCIS-CLAVIER.md, docs/changelog.rst.
  • kitty_tests/options.py: test that fails when two default actions claim the same resolved trigger. The documented file-manager takeover of kitty_mod+e is explicitly allowed.

Tests

  • python3 -m unittest kitty_tests.options.TestConfParsing.test_default_shortcuts_have_no_duplicate_trigger kitty_tests.options.TestConfParsing.test_default_search_shortcut
  • ruff check

The resolved keymap was checked programmatically; the panel and the pager were not run.

Fixes #46

## Summary The keyboard shortcuts panel was on `kitty_mod+h`, the same trigger as `show_scrollback`, which upstream documents and maps to that key. The last definition won silently: ```text SingleKey(mods=5, key=104) -> ['show_scrollback', 'launch --type=window-dock --dock-edge=left --dock-size=60 kitty +kitten help'] ``` Users lost the pager while the docs and the in-app help still announced `Ctrl+Shift+H`. The panel now uses `kitty_mod+alt+h` (`Ctrl+Shift+Alt+H`), which is free, and `show_scrollback` keeps its documented key. The docs, the French cheat sheet and the option help are updated. ## Changes - `kitty/options/definition.py` + `kitty/options/types.py`: new binding, help text explains that `kitty_mod+h` stays with `show_scrollback`. - `docs/kittens/help.rst`, `RACCOURCIS-CLAVIER.md`, `docs/changelog.rst`. - `kitty_tests/options.py`: test that fails when two default actions claim the same resolved trigger. The documented file-manager takeover of `kitty_mod+e` is explicitly allowed. ## Tests - `python3 -m unittest kitty_tests.options.TestConfParsing.test_default_shortcuts_have_no_duplicate_trigger kitty_tests.options.TestConfParsing.test_default_search_shortcut` - `ruff check` The resolved keymap was checked programmatically; the panel and the pager were not run. Fixes #46
BlackAngelTV added 2 commits 2026-12-03 10:21:40 +01:00
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
chore(release): bump the fork version to 0.1.14
CI / check (pull_request) Failing after 5m24s
6e60b16e36
The default shortcut of the shortcuts panel changed, so cut a patch release.
All the version copies must agree for the packaging workflow.
BlackAngelTV merged commit 271babc8f1 into main 2026-12-03 10:21:43 +01:00
BlackAngelTV deleted branch fix/help-shortcut-docs 2026-12-03 10:21:45 +01:00
Sign in to join this conversation.
No Reviewers
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: FWS/FWS-Kitty#56