aboutsummaryrefslogtreecommitdiffstats
path: root/src/searchterm.cpp
AgeCommit message (Collapse)AuthorFilesLines
11 daysfeat(search): add SearchTerm::excludeDanilo M.1-0/+15
Parenthesises both sides, as extend() does: unparenthesised, a disjunction in the query bar binds so the exclusion covers only its last term and leaves the excluded mail on screen, with nothing reporting an error. An empty existing query returns empty rather than the addition alone, which is where this deliberately differs from extend(). Excluding from nothing means the whole Maildir minus one value; the menus will grey the entry out and this is the second layer. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
12 daysfeat(search): build notmuch terms for the right-click actionsDanilo M.1-0/+93
One place for the query grammar behind every search surface, with no widget involved so it is tested without a painter or a web engine. extend() parenthesises both sides. The query bar may hold a hand-written disjunction, and 'a or b AND c' binds as 'a or (b AND c)', which widens a search meant to narrow it and reports nothing.