fix(tui): allow navigating filtered results after searching

enter now confirms the search and returns focus to the list so items
can be selected, toggled, etc. pressing / returns to the search bar
with the query intact, esc clears it.
This commit is contained in:
objz committed 2026-04-25 12:40:42 +02:00
1 parent 7c1de45a2a
commit aa19e5bde1
6 files changed
+32

No files matched your search

+6
View File
@@ -24,6 +24,12 @@ impl SearchState {
self.query.clear();
}
// exit search mode but keep the filter active so the user can
// navigate the filtered results
pub fn confirm(&mut self) {
self.active = false;
}
pub fn push(&mut self, c: char) {
self.query.push(c);
}