diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-12 01:54:21 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-06-12 01:54:21 +0200 |
| commit | bbdf38018b47328b5faa2cef635c37095045be72 (patch) | |
| tree | 8983817d547551ae12508a8ae8731b622d990af4 /crates/turtle/src/command/client/search/interactive.rs | |
| parent | feat(server): Make user stuff stateless (diff) | |
| download | atuin-bbdf38018b47328b5faa2cef635c37095045be72.zip | |
feat(server): Really make users stateless (with tests)
This commit also remove another load of unneeded features.
Diffstat (limited to 'crates/turtle/src/command/client/search/interactive.rs')
| -rw-r--r-- | crates/turtle/src/command/client/search/interactive.rs | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/crates/turtle/src/command/client/search/interactive.rs b/crates/turtle/src/command/client/search/interactive.rs index 380fc33b..1d067e50 100644 --- a/crates/turtle/src/command/client/search/interactive.rs +++ b/crates/turtle/src/command/client/search/interactive.rs @@ -6,7 +6,10 @@ use std::{ #[cfg(unix)] use std::io::Read as _; -use crate::atuin_common::{shell::Shell, utils::Escapable as _}; +use crate::{ + atuin_client::database::ClientSqlite, + atuin_common::{shell::Shell, utils::Escapable as _}, +}; use eyre::Result; use time::OffsetDateTime; use unicode_width::{UnicodeWidthChar, UnicodeWidthStr}; @@ -17,7 +20,7 @@ use super::{ history_list::{HistoryList, ListState}, }; use crate::atuin_client::{ - database::{Context, Database, current_context}, + database::{Context, current_context}, history::{History, HistoryId, HistoryStats, store::HistoryStore}, settings::{ CursorStyle, ExitMode, FilterMode, KeymapMode, PreviewStrategy, SearchMode, Settings, @@ -149,7 +152,7 @@ struct StyleState { impl State { async fn query_results( &mut self, - db: &mut dyn Database, + db: &mut ClientSqlite, smart_sort: bool, ) -> Result<Vec<History>> { let results = self.engine.query(&self.search, db).await?; @@ -1550,7 +1553,7 @@ fn compute_popup_placement( pub(crate) async fn history( query: &[String], settings: &Settings, - mut db: impl Database, + mut db: ClientSqlite, history_store: &HistoryStore, theme: &Theme, ) -> Result<String> { |
