From 56c7646161a8dbc0a7aebc94e6860c346868f732 Mon Sep 17 00:00:00 2001 From: Charles Cunningham Date: Thu, 12 Mar 2026 14:07:18 -0700 Subject: [PATCH] tui: shorten slash help close hint Co-authored-by: Codex --- codex-rs/tui/src/bottom_pane/help_view.rs | 6 +----- .../codex_tui__chatwidget__tests__slash_help_output.snap | 2 +- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/codex-rs/tui/src/bottom_pane/help_view.rs b/codex-rs/tui/src/bottom_pane/help_view.rs index 41c02cbba1..2102098be4 100644 --- a/codex-rs/tui/src/bottom_pane/help_view.rs +++ b/codex-rs/tui/src/bottom_pane/help_view.rs @@ -226,11 +226,7 @@ impl SlashHelpView { if !self.search.active_query.is_empty() { spans.push("n/p match ".dim()); } - spans.extend([ - "q/".dim(), - key_hint::plain(KeyCode::Esc).into(), - " close".dim(), - ]); + spans.extend([key_hint::plain(KeyCode::Esc).into(), " close".dim()]); Line::from(spans) } diff --git a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap index fd4400ca47..5061875738 100644 --- a/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap +++ b/codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap @@ -240,4 +240,4 @@ expression: popup /debug-m-drop - ↑/↓ scroll ctrl + p/ctrl + n page / search q/esc close 1-232/239 + ↑/↓ scroll ctrl + p/ctrl + n page / search esc close 1-232/239