feat(search): add exclusion search operators (-#tag, -token, -"phrase") and autocomplete #56

Merged
clanker merged 1 commit from feat/search-operators into main 2026-09-02 22:46:36 +00:00
Member

Adds exclusion search operators to both the Command Palette and floating search header:

  • Negative Tags: -#tag (e.g. -#guardian, -#drawback) excludes all items matching the tag.
  • Negative Tokens: -word (e.g. -buckler) excludes items mentioning the word in name, tags, or snippet.
  • Negative Phrases: -"exact phrase" excludes items containing the exact quoted phrase.
  • Tag Autocomplete: Autocomplete activates on both # and -# and cleanly inserts -#tag .
  • Shared Architecture: Both Command Palette and the page search headers use the unified parseSearchQuery and scoreItem engine in src/utils/searchRank.ts with strict AND matching.
Adds exclusion search operators to both the Command Palette and floating search header: - **Negative Tags**: `-#tag` (e.g. `-#guardian`, `-#drawback`) excludes all items matching the tag. - **Negative Tokens**: `-word` (e.g. `-buckler`) excludes items mentioning the word in name, tags, or snippet. - **Negative Phrases**: `-"exact phrase"` excludes items containing the exact quoted phrase. - **Tag Autocomplete**: Autocomplete activates on both `#` and `-#` and cleanly inserts `-#tag `. - **Shared Architecture**: Both Command Palette and the page search headers use the unified `parseSearchQuery` and `scoreItem` engine in `src/utils/searchRank.ts` with strict AND matching.
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Home/Spheres4Dummies!56
No description provided.