Skip to content

Commit ef28639

Browse files
charley-oaicodex
andcommitted
tui: accept plain p in help search
Co-authored-by: Codex <noreply@openai.com>
1 parent f701d9e commit ef28639

File tree

4 files changed

+12
-7
lines changed

4 files changed

+12
-7
lines changed

codex-rs/tui/src/bottom_pane/help_view.rs

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -389,8 +389,13 @@ impl BottomPaneView for SlashHelpView {
389389
..
390390
} => self.move_to_match(1),
391391
KeyEvent {
392-
code: KeyCode::Char('p' | 'N'),
393-
modifiers: KeyModifiers::NONE | KeyModifiers::SHIFT,
392+
code: KeyCode::Char('p'),
393+
modifiers: KeyModifiers::NONE,
394+
..
395+
}
396+
| KeyEvent {
397+
code: KeyCode::Char('N'),
398+
modifiers: KeyModifiers::SHIFT,
394399
..
395400
} => self.move_to_match(-1),
396401
_ => {}

codex-rs/tui/src/chatwidget.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5620,7 +5620,7 @@ impl ChatWidget {
56205620
| SlashCommand::Exit
56215621
| SlashCommand::Rollout
56225622
| SlashCommand::Ps
5623-
| SlashCommand::Clean
5623+
| SlashCommand::Stop
56245624
| SlashCommand::Clear
56255625
| SlashCommand::Realtime
56265626
| SlashCommand::TestApproval

codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_output.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ expression: popup
187187
Usage:
188188
/ps
189189

190-
/clean
190+
/stop
191191
stop all background terminals
192192
Usage:
193-
/clean
193+
/stop
194194

195195
/clear
196196
clear the terminal and start a new chat

codex-rs/tui/src/chatwidget/snapshots/codex_tui__chatwidget__tests__slash_help_search_output.snap

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -187,10 +187,10 @@ expression: searching
187187
Usage:
188188
/ps
189189

190-
/clean
190+
/stop
191191
stop all background terminals
192192
Usage:
193-
/clean
193+
/stop
194194

195195
/clear
196196
clear the terminal and start a new chat

0 commit comments

Comments
 (0)