aboutsummaryrefslogtreecommitdiffstats
path: root/crates/atuin-client/src/settings.rs
diff options
context:
space:
mode:
authorEllie Huxtable <ellie@atuin.sh>2026-04-11 05:26:52 +0100
committerGitHub <noreply@github.com>2026-04-11 05:26:52 +0100
commit4d81ec537f91ebed0d5498a36596a516dbf7d26b (patch)
tree01c9ed9f3e3e6ecf61461c99fd8fd6998c26a8c3 /crates/atuin-client/src/settings.rs
parentfix: ensure daemon is running (#3384) (diff)
downloadatuin-4d81ec537f91ebed0d5498a36596a516dbf7d26b.zip
feat: track coding agent shell usage (#3388)
https://github.com/user-attachments/assets/7868c7a4-6a91-4c93-ac6a-e8665cf1f799 ## Checks - [ ] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [ ] I have checked that there are no existing pull requests for the same thing
Diffstat (limited to 'crates/atuin-client/src/settings.rs')
-rw-r--r--crates/atuin-client/src/settings.rs14
1 files changed, 14 insertions, 0 deletions
diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs
index 25c3bd65..5944de59 100644
--- a/crates/atuin-client/src/settings.rs
+++ b/crates/atuin-client/src/settings.rs
@@ -565,6 +565,13 @@ pub struct Search {
/// The overall frecency score multiplier for the search index (default: 1.0).
/// Applied after combining recency and frequency scores.
pub frecency_score_multiplier: f64,
+
+ /// Filter history by author. Special values:
+ /// - `$all-user`: any author that is NOT a known AI agent (default)
+ /// - `$all-agent`: any known AI agent author
+ /// - literal strings like "ellie", "claude-code"
+ #[serde(default = "Search::default_authors")]
+ pub authors: Vec<String>,
}
#[derive(Clone, Debug, Deserialize, Serialize)]
@@ -844,10 +851,17 @@ impl Default for Search {
recency_score_multiplier: 1.0,
frequency_score_multiplier: 1.0,
frecency_score_multiplier: 1.0,
+ authors: Self::default_authors(),
}
}
}
+impl Search {
+ fn default_authors() -> Vec<String> {
+ vec![crate::history::AUTHOR_FILTER_ALL_USER.to_string()]
+ }
+}
+
impl Default for Tmux {
fn default() -> Self {
Self {