Batch key handling (#448)

* Batch input events and only query once they are finished

This simplifies the code a lot (no more bounded channel) and yields
the same performance improvement with scroll wheel spam while fixing copy/paste

* Clippy

* fmt

* Use blocking wait before emptying events channel

This was causing a busy loop

* Update query on filter mode change
This commit is contained in:
Frank Hamand
2022-06-13 09:33:05 +01:00
committed by GitHub
parent 23b9d34e16
commit ab994e3c82
3 changed files with 28 additions and 27 deletions

View File

@@ -24,7 +24,7 @@ pub enum SearchMode {
Fuzzy,
}
#[derive(Clone, Debug, Deserialize, Copy)]
#[derive(Clone, Debug, Deserialize, Copy, PartialEq)]
pub enum FilterMode {
#[serde(rename = "global")]
Global,