Expand description
Single source of truth for the modal status-bar / overlay key hints (issue
#39). Each modal mode declares its keys exactly once here; view renders
both the bottom status bar and the in-overlay hint rows from these tables,
and the consistency test below drives every hinted key through the real
handler — so a hint can never claim a key the handler ignores, nor drift
from it during a refactor.
The rebindable List-mode shortcuts are deliberately NOT here: they derive
straight from the Keymap plus
KeyAction::label, which is their own
single source of truth.
Structs§
- Hint
- One status-bar / overlay hint: the on-screen key text and what it does.
Functions§
- checkout_
hints - Checkout branch-picker hints.
- compose_
ai_ hints - PR-compose AI auto-fill controls (the first overlay hint row).
- compose_
edit_ hints - PR-compose editing controls (the second overlay hint row, and the status
bar).
Enteradvances the field (or inserts a newline in the body). - confirm_
create_ hints - Confirm-create dialog hints:
ycreates a worktree for the branch row and switches into it; any other key cancels (issue #47). - confirm_
delete_ branch_ hints - Confirm-delete-branch dialog hints:
ydeletes the branch row’s local branch; any other key cancels (issue #53). - confirm_
hints - Confirm-remove dialog hints (any non-
ykey cancels;Escis the prompt). - confirm_
init_ submodules_ hints - Confirm-init-submodules dialog hints (issue #50):
Enter/y(the default) initializes recursively,n/Escleaves them uninitialized. - confirm_
quit_ hints - Confirm-quit dialog hints (issue #46 overhaul):
yquits and abandons the running background jobs, any other key cancels. - confirm_
stale_ base_ hints - Confirm-stale-base dialog hints (issue #56):
uupdates the base,pproceeds off it as-is, any other key cancels. - create_
hints - Create-worktree prompt hints.
- filter_
hints - Filter-mode hints (typing narrows the list;
↑/↓move within it). - format_
hint_ row - Formats a hint slice into an overlay row, e.g.
↑/↓: options Enter: next / submit Esc: cancel. - help_
hints - Help-overlay hints.
- pr_
picker_ hints - PR-picker hints.