From 75190f58827026b5f5902b24815a8950e7333bac Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Fri, 10 Apr 2026 02:13:55 +0100 Subject: feat: add strip_trailing_whitespace, on by default (#3390) I can't think of any reason you would want this disabled by default - trailing whitespace means nothing, breaks dedupe, and wastes a few bytes closes #3387 ## 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 --- crates/atuin-client/config.toml | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'crates/atuin-client/config.toml') diff --git a/crates/atuin-client/config.toml b/crates/atuin-client/config.toml index 6e67a4e1..0d0672bf 100644 --- a/crates/atuin-client/config.toml +++ b/crates/atuin-client/config.toml @@ -113,6 +113,11 @@ ## default history list format - can also be specified with the --format arg # history_format = "{time}\t{command}\t{duration}" +## Defaults to true. If enabled, strip trailing spaces and tabs from commands +## before saving them to history. +## Escaped trailing spaces (for example `printf foo\\ `) are preserved. +# strip_trailing_whitespace = true + ## prevent commands matching any of these regexes from being written to history. ## Note that these regular expressions are unanchored, i.e. if they don't start ## with ^ or end with $, they'll match anywhere in the command. -- cgit v1.3.1