From a2c07e5d2fbe459931984839a2ff2e38f1a5a313 Mon Sep 17 00:00:00 2001 From: Dendy Faist Date: Sat, 6 Sep 2025 11:59:07 +0200 Subject: [PATCH] feat: Only show those terms that indeed have the query in them --- src/Service/AnkiService.php | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Service/AnkiService.php b/src/Service/AnkiService.php index ea0763c..86b9676 100644 --- a/src/Service/AnkiService.php +++ b/src/Service/AnkiService.php @@ -218,6 +218,8 @@ class AnkiService if (!$note instanceof SentenceNote) continue; foreach ($note->getTerms() as $term) { + if (!str_contains($term->getKanji(), $query)) continue; + $ret[$term->getKanji()] = $term; } }