aboutsummaryrefslogtreecommitdiffstats
path: root/crates
diff options
context:
space:
mode:
Diffstat (limited to 'crates')
-rw-r--r--crates/atuin/src/command/client/search.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/crates/atuin/src/command/client/search.rs b/crates/atuin/src/command/client/search.rs
index b0e503ad..b6504bd9 100644
--- a/crates/atuin/src/command/client/search.rs
+++ b/crates/atuin/src/command/client/search.rs
@@ -90,6 +90,10 @@ pub struct Cmd {
#[arg(long)]
cmd_only: bool,
+ /// Terminate the output with a null, for better multiline handling
+ #[arg(long)]
+ print0: bool,
+
/// Delete anything matching this query. Will not print out the match
#[arg(long)]
delete: bool,
@@ -255,7 +259,7 @@ impl Cmd {
&entries,
ListMode::from_flags(self.human, self.cmd_only),
format,
- false,
+ self.print0,
true,
tz,
);