more cleanup, better search

This commit is contained in:
2024-11-26 00:16:57 +00:00
parent 944ac08695
commit 81c4242735
16 changed files with 14 additions and 13 deletions

View File

@@ -76,8 +76,12 @@ watch(search, async (value) => {
searchAbort.abort();
}
searchAbort = new AbortController();
let numberOfResults = 0;
for await (let result of fs.search(value, searchAbort.signal)) {
searchResults.value.push(result);
if (numberOfResults++ > 100) {
break;
}
}
});