From ab994e3c827c65966ebc9cd2ac1d3a6048f042bc Mon Sep 17 00:00:00 2001 From: Frank Hamand Date: Mon, 13 Jun 2022 09:33:05 +0100 Subject: 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 --- atuin-client/src/settings.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'atuin-client/src/settings.rs') diff --git a/atuin-client/src/settings.rs b/atuin-client/src/settings.rs index f0af4993..863a5b9b 100644 --- a/atuin-client/src/settings.rs +++ b/atuin-client/src/settings.rs @@ -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, -- cgit v1.3.1