Skip to content

Commit 5453e4e

Browse files
committed
fix: trigger live filter when navigating history
History navigation (Up/Down arrows) now triggers the live filter preview immediately, just like typing characters does. Previously, selecting a filter from history required editing it first before the filter would apply. This fix adds HistoryUp and HistoryDown events to the special handling in main.rs that triggers the background filter thread when the input buffer changes.
1 parent 0136352 commit 5453e4e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,10 @@ fn run_app<B: ratatui::backend::Backend>(
272272
));
273273
*is_incremental_filter = *incremental;
274274
}
275-
AppEvent::FilterInputChar(_) | AppEvent::FilterInputBackspace => {
275+
AppEvent::FilterInputChar(_)
276+
| AppEvent::FilterInputBackspace
277+
| AppEvent::HistoryUp
278+
| AppEvent::HistoryDown => {
276279
// Apply the event first
277280
app.apply_event(event.clone());
278281

0 commit comments

Comments
 (0)