Add group search

* Allow searching by group using the `group:` field.
* Group hierarchies can be searched by including a '/' in the search term.
This commit is contained in:
BO41
2020-05-08 11:13:15 -04:00
committed by Jonathan White
parent 485852c9db
commit f1080d633e
5 changed files with 82 additions and 6 deletions

View File

@@ -38,7 +38,8 @@ public:
Notes,
AttributeKV,
Attachment,
AttributeValue
AttributeValue,
Group
};
struct SearchTerm
@@ -64,7 +65,7 @@ public:
bool isCaseSensitive();
private:
bool searchEntryImpl(Entry* entry);
bool searchEntryImpl(const Entry* entry);
void parseSearchTerms(const QString& searchString);
bool m_caseSensitive;