From bd4db1fa038bc338f2b608858c2ffd3c25e0abe7 Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Sun, 9 May 2021 19:01:21 +0100 Subject: Allow listing or searching with only the command as output (#89) Should be useful for using other tools, such as FZF --- src/command/search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/command/search.rs') diff --git a/src/command/search.rs b/src/command/search.rs index f49f16e2..b45e366a 100644 --- a/src/command/search.rs +++ b/src/command/search.rs @@ -329,6 +329,7 @@ pub async fn run( exclude_cwd: Option, before: Option, after: Option, + cmd_only: bool, query: &[String], db: &mut (impl Database + Send + Sync), ) -> Result<()> { @@ -412,7 +413,7 @@ pub async fn run( .map(std::borrow::ToOwned::to_owned) .collect(); - super::history::print_list(&results, human); + super::history::print_list(&results, human, cmd_only); } Ok(()) -- cgit v1.3.1