Desktop: CP_SEARCH sets the quick search at start (screenshots)

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
vrubelroman 2026-10-23 23:39:46 +03:00
parent 29ffff3de9
commit 8c8a723eee
2 changed files with 5 additions and 1 deletions

View file

@ -318,6 +318,10 @@ impl LargeView {
}
}
}
// `CP_SEARCH="carlsen 2024"`: the quick search from the start (screenshots).
if let Ok(t) = std::env::var("CP_SEARCH") {
form.search = t;
}
let (board, mut pane) = match SearchBoard::from_env() {
Some(b) => (b, Pane::Board),
None => (SearchBoard::new(), Pane::Filters),