aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDhruv Thakur <13575379+dhth@users.noreply.github.com>2025-03-21 14:16:02 +0100
committerGitHub <noreply@github.com>2025-03-21 13:16:02 +0000
commit2a60c5000011960ff9650b454bb504d3c12878b1 (patch)
treeb2b95538e934a4aebb50c2d276b45052fb859c00
parentbuild(nix): bump `flake.lock` (#2637) (diff)
downloadatuin-2a60c5000011960ff9650b454bb504d3c12878b1.zip
chore: show host and user in inspector (#2634)
* chore: show host and user in inspector * chore: show host and user on separate lines
-rw-r--r--crates/atuin/src/command/client/search/inspector.rs3
1 files changed, 3 insertions, 0 deletions
diff --git a/crates/atuin/src/command/client/search/inspector.rs b/crates/atuin/src/command/client/search/inspector.rs
index 01921737..4201ba30 100644
--- a/crates/atuin/src/command/client/search/inspector.rs
+++ b/crates/atuin/src/command/client/search/inspector.rs
@@ -90,8 +90,11 @@ pub fn draw_stats_table(
) {
let duration = Duration::from_nanos(u64_or_zero(history.duration));
let avg_duration = Duration::from_nanos(stats.average_duration);
+ let (host, user) = history.hostname.split_once(':').unwrap_or(("", ""));
let rows = [
+ Row::new(vec!["Host".to_string(), host.to_string()]),
+ Row::new(vec!["User".to_string(), user.to_string()]),
Row::new(vec!["Time".to_string(), history.timestamp.to_string()]),
Row::new(vec!["Duration".to_string(), format_duration(duration)]),
Row::new(vec![