Skip to content

Commit

Permalink
Add the --print0 option to search
Browse files Browse the repository at this point in the history
This mirrors the addition to `history` from #1274, but with search too.
Ther are history search implementations for shells that are set to
search instead of running the history command.
  • Loading branch information
offbyone committed Jan 26, 2025
1 parent 05aec6f commit b017a55
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion crates/atuin/src/command/client/search.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -255,7 +259,7 @@ impl Cmd {
&entries,
ListMode::from_flags(self.human, self.cmd_only),
format,
false,
self.print0,
true,
tz,
);
Expand Down

0 comments on commit b017a55

Please sign in to comment.