mirror of
https://github.com/TheAnachronism/docspell.git
synced 2025-06-22 02:18:26 +00:00
Enhance search mode to search in all items
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user