replace vector collection with event snap for performance reasons (much detailed history logs not planned)

This commit is contained in:
yggverse 2025-03-11 21:10:48 +02:00
parent ce2b02569d
commit 11fecd9cf1
4 changed files with 63 additions and 21 deletions

View file

@ -161,7 +161,7 @@ impl Suggestion {
if !items.is_empty() {
for item in items
.into_iter()
.sorted_by(|a, b| Ord::cmp(&b.opened.len(), &a.opened.len()))
.sorted_by(|a, b| Ord::cmp(&b.opened.count, &a.opened.count))
{
let subtitle = highlight(&item.request, &query);
let title = match item.title {