Repository navigation
GPUI: message search with Discord-style filters - #105
Conversation
vector_core::search folds every message into one buffer and scans it with memchr's memmem: case and accent folded, CJK without word breaks, quoted phrases, and from:, mentions:, has:, in:, before:, after:, during: filters. GPUI opens it with Cmd/Ctrl+K (every chat) or Cmd/Ctrl+F, the header's magnifier and the chat menu (the open chat), suggests the filter being typed, and opens a result at the message. Slim takes the whole window. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq6ReurguGC2qWNpRCjenb
…s build only listed hits Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq6ReurguGC2qWNpRCjenb
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
|
The failing Generated by Claude Code |
|
The Generated by Claude Code |
|
One Generated by Claude Code |
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq6ReurguGC2qWNpRCjenb
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq6ReurguGC2qWNpRCjenb
…er row Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq6ReurguGC2qWNpRCjenb
The member list's field now also scans the Community's messages with the same filters, listing matching members above compact message results. Picking a result opens its channel at the message. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Qq6ReurguGC2qWNpRCjenb
|
Claude encountered an error —— View job I'll analyze this and get back to you. |
Requested by JSKitty · project thread
What
On-device message search for the GPUI client.
vector_core::search): every message (with edits applied, banned authors left out, attachment file names included) gets folded into one NUL-separated buffer and scanned withmemchr::memmem. Case and accents are folded, CJK works without word breaks,"quoted phrases"work, and every term must match. The corpus holds plaintext, so it only lives while the search panel is open.from:,mentions:,has:(link, image, video, audio, file),in:(a DM, a channel, or a whole community by name), andbefore:/after:/during:(2026-11-18,2026-11,2026,today,yesterday).from:meandmentions:mealso work. Mentions are indexed by the person's name, so searching "alice" finds an@npub…mention of Alice.t::(newsearch.ftl). The filter keywords stay English on purpose, as syntax.Numbers
cargo bench -p vector-core --features bench -- searchruns 200k synthetic messages:has:scan takes about 1 ms.Testing
Generated by Claude Code