search within libraries work
This commit is contained in:
11
src/main.rs
11
src/main.rs
@@ -569,7 +569,16 @@ fn ui(frame: &mut Frame, app: &App) {
|
||||
|
||||
// Bottom Left
|
||||
let status_text = if let Some(s) = &app.search {
|
||||
format!("/{}", s.input)
|
||||
let scope = match &s.scope {
|
||||
SearchScope::All => "All".to_string(),
|
||||
SearchScope::Library { title, .. } => title.clone(),
|
||||
};
|
||||
|
||||
if s.input.is_empty() {
|
||||
format!("/ ({scope})")
|
||||
} else {
|
||||
format!("/ ({scope}) {}", s.input)
|
||||
}
|
||||
} else {
|
||||
app.status.clone()
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user