Skip to content

Commit 47c9025

Browse files
trepidityclaude
andcommitted
Open search popup in navigation mode when results exist
F9 was always activating filter input, so arrow keys routed to the command panel cursor instead of navigating the results table. Now when results already exist, F9 opens the popup with input deactivated so Up/Down immediately navigate results. Press / to edit the filter. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent 051f940 commit 47c9025

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

crates/loom-tui/src/app.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1832,7 +1832,10 @@ impl App {
18321832
Action::SearchFocusInput => {
18331833
self.dismiss_all_popups();
18341834
self.search_dialog.visible = true;
1835-
if self.command_panel.input_buffer.is_empty() {
1835+
if self.search_dialog.has_results() {
1836+
// Results exist — open in navigation mode (press / to edit filter)
1837+
self.command_panel.soft_deactivate();
1838+
} else if self.command_panel.input_buffer.is_empty() {
18361839
self.command_panel.activate_input();
18371840
} else {
18381841
self.command_panel.resume_input();

0 commit comments

Comments
 (0)