mirror of
https://github.com/openai/codex.git
synced 2026-11-15 21:50:46 +00:00
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:
committed by
Felipe Coury
parent
1655c2e37f
commit
86374facf2
@@ -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>> {
|
||||
|
||||
+2
@@ -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 "
|
||||
|
||||
+2
@@ -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 "
|
||||
|
||||
+2
@@ -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 "
|
||||
|
||||
Reference in New Issue
Block a user