From 0610ae197f41c0439665c97d914809bd0b10c2fa Mon Sep 17 00:00:00 2001 From: Ellie Huxtable Date: Mon, 26 Apr 2021 14:25:57 +0100 Subject: Pre release polishing (#42) * Improve readme * Add demo gif * Update readme * Add mac build * Amend release config * Update gif --- atuin-client/src/database.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'atuin-client/src') diff --git a/atuin-client/src/database.rs b/atuin-client/src/database.rs index 057b399c..e56a8df0 100644 --- a/atuin-client/src/database.rs +++ b/atuin-client/src/database.rs @@ -274,8 +274,12 @@ impl Database for Sqlite { let res = sqlx::query( format!( - "select * from history + "select * from history h where command like ?1 || '%' + and timestamp = ( + select max(timestamp) from history + where h.command = history.command + ) order by timestamp desc {}", limit.clone() ) -- cgit v1.3.1