A command palette can surface a result even when the query is an abbreviation. The hard part is showing how it got there. Seek’s command palette highlights the exact letters that matched, so a user can see the connection between what they typed and the command in front of them.
Try the interactive command palette: https://motionmart.store/p/seek/command-palette
Start with an exact substring. Seek trims the query, lowercases it for comparison, and looks for a contiguous match. When it finds one, it returns the start and end offsets of that span.
For other queries, it scans the label in order for the query letters. Consecutive letters and word starts contribute to the score. The renderer uses the returned ranges to highlight the matched characters in the label.
For a small example, consider “Open Settings.” A query of “set” highlights the first three letters of “Settings.” A query of “os” can match the “O” from “Open” and the “S” from “Settings.”
The same search function can therefore return a score for ordering the results and ranges for explaining them in the interface.
Keep keyboard navigation separate from the match calculation. In Seek, the arrow keys move the selection, Enter opens a group or runs the selected command, and Escape backs out of a group or closes the palette. Command+K on a Mac, or Ctrl+K on Windows and Linux, toggles it. The search input and options expose combobox semantics.
The value of separating these responsibilities is that filtering can change the result list without changing what the navigation keys mean.
A command palette, usually opened with Command+K or Ctrl+K, that finds commands from abbreviations as well as whole words by matching the typed letters in order. Seek’s palette also highlights the letters that matched.
Yes. Seek is a free Motionmart pack, so the command palette can be copied from its page or added with the shadcn CLI.
No. It matches the query letters in order. Typo correction, accent folding and language-specific ranking are not part of it.