Records Feature record

FDR-015

Quick Switcher (Cmd-K)

Active Last reviewed 2026-10-28 Source file

Overview

A keyboard-driven palette for moving between registered servers, joined rooms, visible DMs, and Notifications. It also searches messages. Users open it with Cmd+K on macOS or Ctrl+K on other platforms. It supports fuzzy matching and remembers recent destinations on the device.

Behavior

  • Narrow-screen palettes leave the app header interactive. A header click closes the palette and runs the header action on the first click. Desktop palettes remain modal.

  • Cmd+K / Ctrl+K opens the palette from anywhere in the app. Escape or clicking outside closes it.

  • Below 768 px viewport width, the palette fills the visible content area below the app header and has a back arrow to close it. The app header stays visible and undimmed. The palette header and search stay available while results scroll. Safe-area padding and the visible viewport keep controls clear of screen cutouts and the software keyboard. Wider windows keep the floating palette. Resizing retains the query and input focus.

  • On open, the palette reads each registered server's current projected navigation state. The empty catalogue contains every registered server, joined channel room, visible DM, and Notifications.

  • Ordinary queries search the loaded navigation catalogue and users already known to each authenticated server's live client state. A query sends no request and no typed text to a server.

  • The bundled client loads the complete user directory of the server in view after it connects (ADR-101). Thus the known users of that server are all its users, and the palette can find a user that the viewer shares no room with. This applies to a server with 20,000 users or fewer. For a larger server, and for a server that was not in view in this session, the known users are those from rooms, DMs, and loaded messages.

  • Known users appear in a separate section after matching destinations, only while typing and where the viewer can start DMs. Selecting a user opens the DM-start destination. A visible one-to-one or self-DM replaces the duplicate user result; a group DM does not. Identities remain separate across servers.

  • Results appear immediately from available catalogues. A loading indicator remains while an authenticated server's initial catalogue is incomplete. Catalogue updates preserve the selected destination when it is still present.

  • Typing filters results with a fuzzy matcher. Items match on both label and detail, such as the server name. Label matches score higher.

  • Typing # as the first character restricts results to rooms only. The # is stripped before matching the rest.

  • Typing ? as the first character switches to message search. The client asks every registered server whose Search feature is supported and ready or degraded for its top results, then combines them by the provider relevance score. A failed or unavailable server does not hide results from the others.

  • Message results identify their author, room, and server. Selecting one opens that message in its room or thread context; message results are not recorded as recent destinations.

  • When the search field is empty, results group as: a "Recent" section first when it has entries, then by kind: destination, server, room, and DM. Each non-recent section is alphabetical.

  • Existing DMs appear in both the empty palette and typed search results. DMs without message history are omitted under the normal navigation rules. Participant display names and logins match one-to-one, group, and self-DMs. Selecting a DM opens that conversation. Known-user results can start or reuse a DM even when that conversation has no messages yet.

  • Notifications is the only well-known destination. Servers link to their Overview page.

  • DMs show participant avatars and display names. Servers and channel rooms show the server logo.

  • Multi-server setups show the server name as a detail label so destinations with similar names disambiguate.

  • Arrow keys move selection; Enter navigates; the selected item scrolls into view.

  • Hovering a result selects it; clicking navigates.

  • The 15 most recent destinations are remembered (per device) and surfaced in the "Recent" section. When searching, recent destinations get a score boost so they outrank otherwise-equivalent matches.

Design Decisions

1. Local conversation catalogue with parallel message searches

Decision: Opening the palette composes the current navigation projections from every registered server. It does not fetch a second room catalogue. Ordinary queries filter this catalogue and known users locally. Message searches run in parallel against eligible registered servers. One server's message-search failure does not block results from another. Why: The per-server projections already own room and DM convergence. Reusing them makes navigation search immediate and avoids downloading full member directories or decrypting them for each query. Parallel message search still gives users one cross-server result set. See ADR-025. Tradeoff: A server that has not finished its projection catch-up can have an incomplete catalogue until its normal navigation state converges. Known-user results depend on what the client has loaded. They are complete for a server whose user directory the client loaded (ADR-101), and incomplete for the other servers, where they can change after a reload. The palette stays local for a privacy reason too: an ordinary query is often navigation text, such as a room name, and a search request would send that text to a server. Profile updates, deletion, loss of DM-start permission, and session resets update these results through the existing state lifecycle. Rooms, DMs, and timelines share known user profiles within the current connection. Profile updates and removal markers also update the palette. Profiles from other connection sessions are excluded; searching does not fetch missing users. See ADR-101.

2. Fuzzy match with prefix-bias and recent-boost

Decision: Matches on label and detail strings; label matches outrank detail matches; the user's recent destinations get an additional score boost. Why: Three tiers of relevance: exact label match > label substring > detail match. Recent boost layers on top because users who just visited a room are likely to want to go back. Without it, the user's most-likely target can be buried under alphabetical noise. Tradeoff: The scoring is opinionated and not easily tunable per user. Worth it for the speed wins.

3. # prefix as a room filter

Decision: Typing # filters results to rooms only and strips the prefix before matching the rest of the query. Why: Power users often know they're looking for a room and want to filter out the noise. # is the conventional room sigil — easy to type and easy to remember. Tradeoff: A user whose room name actually starts with # (e.g., #announcements) might get unexpected matching. The filter strips only the first #, so a user searching for #announce matches a literal announce. Acceptable in practice.

4. Cross-server message search uses provider scores

Decision: A ? query fans out to compatible servers and sorts the accumulated results by each provider's relevance score. The client does not recalculate relevance. Equal scores fall back to newest first and then a stable message ID order. Why: Round-robin merging quickly becomes noisy for users registered with many servers. Search providers already have the corpus statistics and query model needed to rank their own hits; discarding that signal would make the combined list substantially less useful. Tradeoff: Raw scores are only directly comparable while servers use compatible query normalization and scoring implementations. This deliberately simple first version accepts that limitation; a future federation-aware scoring contract can replace it if operators adopt materially different providers.

5. Recent destinations stored per device

Decision: Recent destinations live in localStorage, not on the server. Why: "Recent" is contextual to where the user is right now (this device, this session). Syncing across devices isn't valuable — what's recent on your phone is rarely what's recent on your laptop. Local storage is also free and instant. Tradeoff: Recents don't survive cache clearing. Acceptable.

6. Keep the well-known destination list small

Decision: Notifications is the only well-known destination. Server entries open server Overview pages. Visible DMs appear as their rooms. Why: Each current destination has a concrete target. Separate browsing and DM landing pages no longer exist. Tradeoff: Users discover new rooms through server navigation rather than a dedicated switcher destination.

Permissions

No dedicated permission. The palette uses each server's projected navigation visibility. Opening an existing DM does not require permission to start a new DM. Known-user actions require an authenticated session, usable server state, and permission to start DMs. Message search uses the server's Search availability and normal read boundary.

  • ADRs: ADR-025 (multi-instance client architecture), ADR-101 (shared client user profiles)
  • FDRs: FDR-007 (Direct Messages), FDR-012 (Notifications)

Records that name this record

Esc