From 0f139044b4d76d70a747bb602e91a764c854f46f Mon Sep 17 00:00:00 2001 From: Tom Cammann Date: Tue, 28 Mar 2023 22:06:24 +0100 Subject: Add more fields to `atuin search -f` formatting (#824) - Add `{exit}` which returns the exit code - Add `{relativetime}` which gives a relative time, e.g. "5h" --- src/command/client/search.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/command/client/search.rs') diff --git a/src/command/client/search.rs b/src/command/client/search.rs index fb3a1a39..7a4d365f 100644 --- a/src/command/client/search.rs +++ b/src/command/client/search.rs @@ -79,7 +79,8 @@ pub struct Cmd { #[arg(long)] delete: bool, - /// Available variables: {command}, {directory}, {duration}, {user}, {host} and {time}. + /// Available variables: {command}, {directory}, {duration}, {user}, {host}, {time}, {exit} and + /// {relativetime}. /// Example: --format "{time} - [{duration}] - {directory}$\t{command}" #[arg(long, short)] format: Option, -- cgit v1.3.1