Skip to content

feat: cross-tab search hints (unified search) - #254

Merged
omercelikdev merged 1 commit into
mainfrom
feat/cross-tab-search
Jul 12, 2026
Merged

feat: cross-tab search hints (unified search)#254
omercelikdev merged 1 commit into
mainfrom
feat/cross-tab-search

Conversation

@omercelikdev

Copy link
Copy Markdown
Owner

Fourth and final "wow" feature: searching in one tab surfaces how many matches exist in the others, so "where did I save that?" is one click away.

A thin bar under the filter row shows a chip per other tab with a match count; clicking it switches tab and carries the query across (goToTabWithSearch keeps the search rather than clearing it like a normal tab switch).

How

  • database.countSnippetMatches(query) — SQL count mirroring the snippet search (title/content LIKE ESCAPE); 0 for a blank query without a DB hit.
  • History/Snippet counts via SQL; Vault counts in memory, title-only, and only while unlocked — a locked vault never leaks a count (contents are encrypted).
  • appStore.goToTabWithSearch preserves the query; the sidebar's normal setActiveTab still clears it.
  • CrossTabSearchHints rendered on all three list tabs.

Tests

countSnippetMatches blank-query short-circuit. i18n: search.alsoIn ×15. tsc clean · 606 tests green.

Completes the "wow" series: #251 calculator · #252 smart actions · #253 frecency · this.

🤖 Generated with Claude Code

Searching in one tab now surfaces how many matches exist in the others, so
"where did I save that?" is one click away. A thin bar under the filter row
shows a chip per other tab with a match count; clicking it switches tab and
carries the query across (goToTabWithSearch keeps the search instead of
clearing it like normal tab switches).

- database.countSnippetMatches(query) — SQL count mirroring the snippet
  search (title/content LIKE ESCAPE), 0 for blank without a DB hit.
- History/Snippet counts via SQL; Vault counts in memory, title-only, and
  only while unlocked (contents are encrypted) — so a locked vault never
  leaks a count.
- appStore.goToTabWithSearch preserves the query; the sidebar's normal
  setActiveTab still clears it.
- CrossTabSearchHints rendered on all three list tabs.

Tests: countSnippetMatches blank-query short-circuit. i18n: search.alsoIn ×15.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
@omercelikdev
omercelikdev merged commit 6701b2e into main Jul 12, 2026
@omercelikdev
omercelikdev deleted the feat/cross-tab-search branch July 12, 2026 18:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant