From 5233df7325659d2772ce02c73adbae9e7d14b234 Mon Sep 17 00:00:00 2001 From: 依云 Date: Fri, 3 Apr 2026 07:52:45 +0800 Subject: feat: option to disable mouse support (#3372) ## Checks - [x] I am happy for maintainers to push small adjustments to this PR, to speed up the review cycle - [x] I have checked that there are no existing pull requests for the same thing This adds an option to disable mouse support, so that the terminal handles mouse events, making it easy to select text. I've found myself needing to copy from history frequently recently and holding Shift is not convenient. However, this makes mouse scrolling not work as expected, e.g. in my case it scrolls six lines at a time. Also see #1209. --- crates/atuin-client/src/settings.rs | 2 ++ 1 file changed, 2 insertions(+) (limited to 'crates/atuin-client/src') diff --git a/crates/atuin-client/src/settings.rs b/crates/atuin-client/src/settings.rs index 78953320..22b892d1 100644 --- a/crates/atuin-client/src/settings.rs +++ b/crates/atuin-client/src/settings.rs @@ -1094,6 +1094,7 @@ pub struct Settings { pub history_format: String, pub prefers_reduced_motion: bool, pub store_failed: bool, + pub no_mouse: bool, #[serde(with = "serde_regex", default = "RegexSet::empty", skip_serializing)] pub history_filter: RegexSet, @@ -1563,6 +1564,7 @@ impl Settings { .map(|_| config::Value::new(None, config::ValueKind::Boolean(true))) .unwrap_or_else(|| config::Value::new(None, config::ValueKind::Boolean(false))), )? + .set_default("no_mouse", false)? .add_source( Environment::with_prefix("atuin") .prefix_separator("_") -- cgit v1.3.1