search filter by tag natively
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m1s

This commit is contained in:
2026-03-25 11:02:23 -05:00
parent 59eb5be34a
commit 3876047dbe
+3 -2
View File
@@ -1144,12 +1144,13 @@ export const matchesFilter = (task: Task) => {
const f = store.filter;
// Query search (title or content)
// Query search (title, content, or currently visible tags)
if (f.query) {
const q = f.query.toLowerCase();
const inTitle = task.title.toLowerCase().includes(q);
const inContent = task.content?.toLowerCase().includes(q);
if (!inTitle && !inContent) return false;
const inVisibleTags = getVisibleTaskTags(task, ctx).some(tag => tag.toLowerCase().includes(q));
if (!inTitle && !inContent && !inVisibleTags) return false;
}
// Tags