Enhance search mode to search in all items

This commit is contained in:
eikek
2021-08-21 15:08:46 +02:00
parent bb8a6c054b
commit d5022f883e
7 changed files with 19 additions and 3 deletions

View File

@ -129,6 +129,9 @@ object ItemQueryGenerator {
case Expr.Trashed =>
tables.item.state === ItemState.Deleted
case Expr.ValidItemsOrTrashed =>
tables.item.state.in(ItemState.validStatesAndDeleted)
case Expr.TagIdsMatch(op, tags) =>
val ids = tags.toList.flatMap(s => Ident.fromString(s).toOption)
Nel