feat(tui): surface keymap customization hints

Add a dedicated footer line pointing to `[tui.keymap]` in
`~/.codex/config.toml` so users can find where to rebind shortcuts.

Refresh tooltips and snapshots to mention the config entry and
the keymap template URL.
This commit is contained in:
Josh McKinney
2026-04-23 10:35:17 -03:00
committed by Felipe Coury
parent 1655c2e37f
commit 86374facf2
6 changed files with 222 additions and 2 deletions
+6 -2
View File
@@ -816,10 +816,14 @@ fn shortcut_overlay_lines(state: ShortcutsState) -> Vec<Line<'static>> {
if change_mode.width() > 0 {
ordered.push(change_mode);
}
ordered.push(Line::from(""));
ordered.push(show_transcript);
build_columns(ordered)
let mut lines = build_columns(ordered);
lines.push(Line::from(""));
lines.push(Line::from(
"[tui.keymap] customize shortcuts in ~/.codex/config.toml",
));
lines
}
fn build_columns(entries: Vec<Line<'static>>) -> Vec<Line<'static>> {
@@ -17,3 +17,5 @@ expression: terminal.backend()
" ctrl + r search history ctrl + c to exit "
" ⌥ + , reasoning down ⌥ + . reasoning up "
" ctrl + t to view transcript "
" "
" [tui.keymap] customize shortcuts in ~/.codex/config.toml "
@@ -10,3 +10,5 @@ expression: terminal.backend()
" ⌥ + , reasoning down ⌥ + . reasoning up "
" shift + tab to change mode "
" ctrl + t to view transcript "
" "
" [tui.keymap] customize shortcuts in ~/.codex/config.toml "
@@ -9,3 +9,5 @@ expression: terminal.backend()
" ctrl + r search history ctrl + c to exit "
" ⌥ + , reasoning down ⌥ + . reasoning up "
" ctrl + t to view transcript "
" "
" [tui.keymap] customize shortcuts in ~/.codex/config.toml "