From 87b3e23f1144969f52fd0a6ae455ba2f715c7b69 Mon Sep 17 00:00:00 2001 From: Benedikt Schnatterbeck Date: Thu, 12 Jan 2023 14:18:38 +0000 Subject: [PATCH] feat: add basic scroll functionality --- src-tauri/src/util/search.rs | 3 +-- src/routes/App/App.svelte | 2 +- src/routes/App/lib/SearchResult.svelte | 8 +++++++- 3 files changed, 9 insertions(+), 4 deletions(-) diff --git a/src-tauri/src/util/search.rs b/src-tauri/src/util/search.rs index 77376c4..34c97d0 100644 --- a/src-tauri/src/util/search.rs +++ b/src-tauri/src/util/search.rs @@ -32,10 +32,9 @@ pub fn search( .more_locations(more_locations.to_vec()) .depth(depth.unwrap_or(1)) .ext(extension.unwrap_or("*")) - .limit(5) .ignore_case() .build() .collect(); similarity_sort(&mut result, input); - return result; + result } diff --git a/src/routes/App/App.svelte b/src/routes/App/App.svelte index 27a0b6d..1810e3a 100644 --- a/src/routes/App/App.svelte +++ b/src/routes/App/App.svelte @@ -97,7 +97,7 @@