Skip to content

Extras

CommandPalette

Bit.BlazorUI.ExtrasCommandMenuCmdkSpotlight

BitCommandPalette is an accessible, keyboard-first command palette: the Ctrl+K (Cmd+K on a Mac) box that fuzzy-searches every page, action and setting of an app and runs the one picked, with nested pages, prompts, multi-select, async sources, recents and global shortcuts. Matching, ranking and every decision run in C#; the browser only shows the native dialog and listens for keys.

Search & sources

How a query finds commands: fuzzy matching, text folding, query operators, typos, field weights, priority and frecency, custom matchers, modes, async sources, paging and performance.

Fuzzy matching

BitCommandPaletteFuzzyMatcher, the palette's default matcher, follows fzf's algorithm. A query matches a text when its characters appear in it in order, with anything in between; among all such alignments, dynamic programming keeps the one with the best score, built from these public constants of the class:
  • ScoreMatch (16) for every matched character; ScoreGapStart (-3) for the first character a gap skips and ScoreGapExtension (-1) for each further one.
  • BonusBoundary (8) for a match at the start of a word: gs finds Go to settings.
  • BonusCamel (7) for a camelCase hump or a letter-to-digit step: fm finds FuzzyMatcher.cs.
  • BonusNonWord (8) for punctuation the query itself typed, and BonusConsecutive (4) for a character right after the previous match, carrying the bonus that started the run.
  • BonusFirstCharMultiplier (2): the first query character's bonus counts double; BonusCaseMatch (1) for a character whose case matches exactly.
Smart case: a term typed all in lower case ignores case, a term with a capital letter respects it - mcp finds "MCP server", Mcp does not. new BitCommandPaletteFuzzyMatcher { IgnoreCase = true } turns that off. Between equal alignments the shorter text and the earlier match win, and the ranker puts equal ranks in title order.
The positions of the winning alignment are what the palette highlights with a <mark> in titles and subtitles - never splitting a letter from its combining accents or an emoji from its other half. Turn it off with HighlightMatches="false" on one palette or options.HighlightMatches = false for all of them, and render the same highlighting in markup of your own with <BitCommandPaletteHighlightedText Text="..." Positions="..." />, as the table here does. While a query is typed, results stay under their group headings (GroupWhenSearching, on by default); GroupWhenSearching="false" makes them one flat ranked list.
A field longer than BitCommandPaletteFuzzyMatcher.MaxOptimalLength (4,096 characters), such as a long description, is aligned greedily in linear time instead, as fzf does: the term is still found and highlighted, the alignment just is not always the best one. A query is searched up to BitCommandPaletteQuery.MaxLength (256) characters; a longer one matches no command (IsTooLong) but is not cut short: commands with AlwaysShow are still listed, and async sources and handlers still receive all of it.
Type in the palette below. The table runs the palette's own steps with the public API on every keystroke - BitCommandPaletteQuery.Parse, the Match(command, query) extension of BitCommandPaletteMatcherExtensions and BitCommandPaletteRanker.Rank - and shows each command's score and final rank. EnableHistory="false" keeps your own usage (frecency) out of the palette, so it lists the commands in exactly the table's order. Try gs, fm, rc, mcp and Mcp.

Go to settings
Git: stash changes
Toggle sidebar
FuzzyMatcher.cs
Format document
Open recent file
Reload window
Rename symbol
MCP server
#CommandScoreRank
1 Go to settings 0 0
2 Git: stash changes 0 0
3 Toggle sidebar 0 0
4 FuzzyMatcher.cs 0 0
5 Format document 0 0
6 Open recent file 0 0
7 Reload window 0 0
8 Rename symbol 0 0
9 MCP server 0 0

Text as people type it

People type what their keyboard gives them, not what the data stores. BitCommandPaletteFuzzyMatcher.Normalize (on by default) folds both sides before comparing them:
  • Latin letters lose their diacritics: cafe finds "Café", lodz finds "Łódź" (letters with a stroke too, as in fzf) and turkce finds "Türkçe". A term that types a diacritic itself means that letter, as in fzf: café is matched as written.
  • Arabic and Persian letters that differ only by the keyboard they were typed on are one letter: the forms of yeh (ي ى ئ and ی) and kaf (ك and ک), alef with hamza or madda (أ إ آ ٱ and ا), teh marbuta and heh with yeh (ة ۀ and ه), and waw with hamza (ؤ and و). A name stored from an Arabic keyboard is found from a Persian one, and the other way round.
  • Digits are digits: Arabic-Indic and Persian digits are ASCII digits - ۱۲ finds "Order 12", ٣ finds "Step 3" - and fullwidth ASCII, which some input methods type, is ASCII.
The folding is done by BitCommandPaletteTextFold, an internal class shared by the fuzzy matcher, BitCommandPaletteSubstringMatcher and the query operators, so 'exact, ^prefix, suffix$ and !negate fold exactly the same way. It is not public API; what an app controls is the matcher's Normalize property. Every mapping is one character to one, so a position in the folded text is the same position in the stored one and the highlight lands on the letters as they are stored: typing cafe marks all of "Café", the é included, and nothing about the stored data changes.
new BitCommandPaletteFuzzyMatcher { Normalize = false } matches every character literally, like fzf's --literal; set it as options.Matcher to make every palette of the app literal (see "A custom matcher"). The palette below always uses the app's matcher - type the examples into it. The table matches each example against the same commands with the default matcher, or, with the switch on, with a literal one, so you can see what the folding finds.

Café
Łódź
Türkçe
علي
فارسی
كتاب
إسم
العربية
Order 12
Step 3

TypedFindsWhy
cafe Café Latin letters lose their diacritics.
café Café A term that types a diacritic means that letter, and is matched as written.
lodz Łódź Letters with a stroke fold too: Ł is L, as in fzf.
turkce Türkçe ü and ç are u and c.
علی علي Typed with the Persian yeh (ی), stored with the Arabic one (ي).
فارسي فارسی The other way round: typed with the Arabic yeh, stored with the Persian one.
کتاب كتاب Typed with the Persian kaf (ک), stored with the Arabic one (ك).
اسم إسم Alef with hamza or madda is plain alef.
العربيه العربية Typed with heh (ه), stored with teh marbuta (ة).
۱۲ Order 12 Persian digits are ASCII digits.
٣ Step 3 Arabic-Indic digits too.
order Order 12 Fullwidth letters, which some input methods type, are ASCII.

Query operators

A query is split on spaces into terms, and every term has to match (AND), each against whichever field of the command scores it best, in any order. A term is fuzzy unless it carries one of fzf's operators:
  • 'export - exact: the text itself, with no gaps, anywhere in a field.
  • ^set - prefix: a field starts with it.
  • project$ - suffix: a field ends with it.
  • !minimap - negation: drops every command whose title, subtitle, group or keywords contain the text (description and tags are not looked at). It adds nothing to the score.
  • "word wrap" - a quoted phrase: one exact term, spaces included. !"..." excludes a phrase, ^"..." and "..."$ anchor it. Curly quotes, which some keyboards type, work as well as straight ones, and a quote left open takes the rest of the query while it is being typed, so typing one never shows "no results" midway.
  • ^change | ^set - alternatives: a | standing on its own between two terms means either will do, as in fzf. !docker | git holds for anything about git, or not about docker.
The operators follow the same folding rules as the matcher ('cafe finds "Café"), and they work with any matcher, the one you plug in included. BitCommandPaletteQuery.Parse(text) is the palette's own parser and is public: its Terms give each term's Text, its Operator (a BitCommandPaletteQueryOperator: Fuzzy, Exact, Prefix, Suffix or Negate) and its Group - terms sharing a group are alternatives of which one has to hold. The palette parses a query once per keystroke, not once per command.
Type the examples of the table into the palette; the line under it shows, live, what BitCommandPaletteQuery.Parse made of what you typed (the palette reports its query through OnQueryChanged).

Wrap selection in a tag
Export project
Open project
Close project
Settings
Set the language
Change the theme
Toggle word wrap
Show minimap
Show breadcrumbs
BitCommandPaletteQuery.Parse:no terms - every command matches.
QueryMeans
wrap word Two fuzzy terms, both required, in any order.
'export Exact: the text itself, no gaps.
^set Prefix: a field starts with it.
project$ Suffix: a field ends with it.
show !minimap Negation: drops every command that contains the term.
"word wrap" A quoted phrase: matched exactly, the space included.
!"open project" project A negated phrase: the projects, except Open project.
^"set the" An anchored phrase: a field starts with it.
^change | ^set Alternatives: starts with change, or with set.

Typos

A query that matches nothing is tried once more allowing a typo per term, so settigns still finds "Settings". What counts as one typo is one edit of the optimal string alignment: a missing, extra or wrong letter, or two neighbouring letters swapped. A term of 4 to 7 characters may have one, a term of 8 to 64 characters two; shorter terms (one edit would make them match almost anything), longer ones and terms with an operator get no second chance. A missing letter is usually found without the retry, since the rest of the term is still in order and the fuzzy matcher allows gaps.
Only a query that found nothing is retried, so a query that works never gets noisier. The close matches are scored below every exact one, async sources that opt into the matcher (ApplyMatcher) are re-scored the same way, and the list is marked and announced "No exact matches. Showing close ones." (BitCommandPaletteStrings.ApproximateResults); BitCommandPaletteMatch.IsApproximate tells an ItemTemplate a row is a close match. A field is read a machine word at a time, so a typo is found in a long description too.
The retry belongs to the palette, not to the matcher: calling a matcher directly, as the tables of the previous sections do, never finds a typo. Turn it off for every palette with options.TypoTolerance = false, or for one palette with TypoTolerance="false" - flip the switch and try settigns, langauge (swapped), privacyy (extra), notefications (wrong) and apearence (two).

Settings
Language
Privacy
Notifications
Appearance
Keyboard shortcuts

Field weights

Each term of a query is scored against every searchable field of a command, and the field with the best weighted score counts - so a hit in the title beats the same hit in a keyword, which beats one in the subtitle. The weights are a BitCommandPaletteMatchWeights, set for the whole app through options.Weights:
  • Title 1.0
  • Keyword 0.9 - Keywords are the synonyms a command is also found by: .Keywords("logo", "color") in C#, Keywords="logo, color" on a BitCommandPaletteOption. They are not shown, except that a row without a subtitle shows the keyword that matched, so the user sees why it is listed (BitCommandPaletteMatch.MatchedKeyword).
  • Subtitle 0.7
  • Group 0.5
  • Path 0.5 - the titles of a nested command's ancestors when it is found from the root page: theme dark finds "Dark" on the page of "Theme".
  • Description 0.4
  • Tag 0.3
With several terms, each one picks its own best field and their scores add up. Only the title's and the subtitle's matched characters are highlighted. To let descriptions count for more, for example: builder.Services.AddBitBlazorUIExtrasServices(commandPalette: options => options.Weights.Description = 0.6).
Every command below holds "color" in a different field. Type color (or col, clr) into the palette: it lists them in the order of the weights. The table shows, for what you typed taken as one fuzzy term, the field that won, its raw score, its weight and the product. GroupWhenSearching="false" keeps the palette one flat ranked list, so the group of "Contrast checker" does not move it under a heading of its own.

Color picker
Brand kit
AppearanceFonts, color and spacing
Design tokens
Export assets
Contrast checker
Command Field that won Raw score Weight Weighted

Priority and frecency

With a query, the match decides and the rest only nudges it: rank = score + Priority × PriorityWeight + ln(1 + frecency) × FrecencyWeight, with options.PriorityWeight 0.25 and options.FrecencyWeight 6 by default - a clearly better match always wins, and among close ones the command you use wins. Equal ranks go by title. On the empty query there is nothing to match, so priority leads and frecency orders what is left (priority × 1000 + frecency), inside each group, and commands of equal priority keep the order they were registered or declared in. Only the best options.MaxResults (150) rows are kept per query; pinned and recent commands are listed beyond it.
A priority is any int; BitCommandPaletteCommandPriority names the usual levels: Lowest (-100, a feedback row with AlwaysShow), Low (-50, documentation hits), Normal (0, the default), High (50) and Highest (100). Set it with .Priority(...) in C#, with Priority on a BitCommandPaletteOption, or on a BitCommandPaletteGroup for all of its options that set none.
Frecency is Firefox's idea: the number of uses, capped at 20, times a weight for how long ago the last one was - 100 within 4 hours, 70 within a day, 50 within three days, 30 within a week, 10 within a month, 5 after that - divided by 10. The palette records every run in its history (see recents), and BitCommandPaletteHistory.ComputeFrecency(usage, now) is the formula, public.
The table ranks five commands with a BitCommandPaletteRanker built over options with the sliders' weights, using frecencies computed from made-up usage: "Report a bug" was used 3 times five days ago, and "Weekly report" as often as the third slider says, two hours ago. Raise its uses and watch it overtake the others on report; raise PriorityWeight and "Reports overview" (High) pulls ahead; clear the query and priority alone decides. The palette lists the same commands with the app's weights and no history (EnableHistory="false").

rank = score + priority × 0.25 + ln(1 + frecency) × 6
# Command Priority Frecency Score Rank
1 Reports overview 50 0 151.68 164.18
2 Report a bug -50 9 151.76 153.08
3 Sales report 0 0 151.7 151.7
4 Weekly report 0 0 151.67 151.67
5 Archived reports -100 0 151.59 126.59

Reports overview
Sales report
Weekly report
Report a bug
Archived reports

A custom matcher

The matcher is pluggable. IBitCommandPaletteMatcher is one method - Match(query, text) - returning a BitCommandPaletteFieldMatch(Matched, Score, Positions): whether the text matches, how well, and the indexes of the characters to highlight (BitCommandPaletteFieldMatch.None for no match, Empty for an empty query). The palette calls it once per fuzzy term per field, so multi-term queries, the operators (which fold diacritics and Arabic-script letters with any matcher but a literal one), field weights, ranking and the typo retry all keep working with a matcher of your own. Set it for the whole app with options.Matcher in the commandPalette argument of AddBitBlazorUIExtrasServices; the ready-made ones are:
  • BitCommandPaletteFuzzyMatcher.Default - the default; new BitCommandPaletteFuzzyMatcher { IgnoreCase = true } drops smart case, { Normalize = false } matches literally.
  • BitCommandPaletteSubstringMatcher.Default - a case-insensitive substring matcher that scores a match at the start higher, for data where fuzziness hurts more than it helps (codes, part numbers). It folds like the fuzzy one unless its Normalize is false.
Matching can also be called directly - in a test, or in a tool that explains a search: the Match(command, query, weights) extension of BitCommandPaletteMatcherExtensions matches a whole command (with a query string, or one parsed once with BitCommandPaletteQuery.Parse for many commands) and returns a BitCommandPaletteMatch, or null. It carries the Score, the TitlePositions and SubtitlePositions to highlight, the MatchedKeyword, the Path of a nested command found from the root, IsApproximate for a typo match, FromSource and SourceName for a source's result, and - once BitCommandPaletteRanker.Rank (injectable, or created over options) has ordered the matches as the palette does - its Rank and Frecency. Matching runs over the command's own fields; an async source opts into it with ApplyMatcher.
options.Matcher is one setting for the whole app, so instead of changing it, this demo runs each matcher directly over the commands of the "Fuzzy matching" section. DPrefixMatcher is a complete custom matcher: a field matches when it starts with the term. Compare re, rc and Mcp across them.

Matcher

#CommandScore
1 Reload window 55.74
2 Rename symbol 55.74
3 Open recent file 55.63
4 MCP server 28.74
5 Format document 20.68

Modes

A mode is a prefix typed at the start of the query - > in VS Code, # and @ on GitHub - that scopes the palette to part of the registry, to its own async sources, or both. A BitCommandPaletteCommandMode has:
  • Prefix (required) - what activates it. The longest matching prefix wins, so >> and > can coexist.
  • Name (required) - the chip shown next to the search box while the mode is active, and the title of its hint.
  • Description - the hint's subtitle.
  • Placeholder - the search box's placeholder while the mode is active.
  • Tags - only commands carrying one of these tags (.Tags(...) in C#, Tags on an option or a group).
  • Groups - only commands in one of these groups.
  • HideRegistryCommands - no registry commands at all, only the mode's sources.
  • Sources - the async sources asked in this mode, instead of the default mode's (see "Async sources").
  • ShowHint (default true) - whether the mode is listed as a hint.
Register modes for the whole app in options.Modes in the commandPalette argument of AddBitBlazorUIExtrasServices, or at runtime with IBitCommandPaletteService.RegisterMode(mode), which returns an IDisposable that removes the mode again: this page registers its modes when it opens and disposes them when you leave. IBitCommandPaletteService.Modes lists what is registered - the table below. On the empty query of the default mode the palette lists every mode with ShowHint under a "Modes" heading, so they can be discovered without reading any docs, and picking a hint types its prefix; options.ShowModeHints = false drops the whole group. A mode scopes the registry and its sources only: nested commands are never found from a mode.
To open the modal palette directly in a mode, give a BitCommandPaletteTrigger a Query that starts with the prefix (Query=">"), or call paletteService.OpenAsync(">"). Modes are registered with the service, so a palette has them only while IncludeRegisteredCommands is on: the inline palette below leaves it on and lists every command registered on this page, with the mode hints at the top. Type > for the commands tagged "command", ? for the Help group, or >> - a mode with no hint - for everything.


Sort the lines
Toggle word wrap
Format the document
Save draft Alt+Q
Enter focus mode Off
Sync with server
Publish release
Export as PDF G then X
Admin
Keyboard shortcuts
Search syntax
Release notes
Greet the team
Generate report…
Preferences
New note Alt+Shift+N
Go to notes G then N
Change the note color G then C
Discard the draft Alt+Shift+D
Preview the note Space
Wave goodbye
Sync with the server
Transfer ownership
Scratch note
Commands>Run an editor command
Help?Browse the help topics
People@Find a teammate or a team
Packages$Browse 60 packages, 10 at a time
PrefixModeListsHint
> Commands Run an editor command commands tagged command Yes
? Help Browse the help topics the Help group Yes
>> Everything Every registered command every command No
@ People Find a teammate or a team only its sources: People, Teams Yes
$ Packages Browse 60 packages, 10 at a time only its sources: Packages Yes

Async sources

An async source (IBitCommandPaletteSource) searches what the registry does not hold - an API, a database, a search index - as the user types. It has a Name (the heading of its results, and of its retry row) and SearchAsync(query, context, cancellationToken), and three members with defaults: MinQueryLength (1; 0 also asks on the empty query, so a mode opens on a list), MaxResults (20, the most rows taken from it) and ApplyMatcher (false). Give every result an Id of its own - two people can share a name, and recents and pins go by the id. The BitCommandPaletteSourceContext says which mode asked (ModePrefix), which page asked (ParentCommandId) and carries the user's Services, to resolve a scoped API client from.
Re-ranked or ordered. With ApplyMatcher = true the palette scores what the source returns with its own matcher and sorts it in with everything else: the source only has to return candidates, and its rows are highlighted like the rest. With false, the source's own order is kept and its rows are listed as one block under its name - right for a server that already sorts by relevance.
Debounced, cancelled, timed out. A source is asked only after options.DebounceMs (150 ms) without typing, so most keystrokes never reach it, and a search still running when the next one starts is cancelled through its token - hand the token to whatever waits, and stale results never show. While any source is pending a spinner replaces the search icon, and a mode or page with nothing to show yet shows "Searching…" (LoadingTemplate replaces it). A source that throws, or has not answered after options.SourceTimeoutMs (10 s; 0 waits forever) - whether or not it honours its token - is logged and leaves a row in its place, "Couldn’t search Service status" in the danger color (BitCommandPaletteStrings.SourceFailed), that asks it again when chosen. The other sources' results stay: one failing API does not take the whole list with it.
Registering them. Sources in options.Sources are asked in the default mode, and so are the ones registered at runtime with IBitCommandPaletteService.RegisterSource (which returns a handle that removes it) and the ones resolved from DI with services.AddBitCommandPaletteSource<TSource>() - those are scoped, belong to the scope, and stay registered whichever palette comes and goes. A mode asks its own Sources instead, and a command's page can ask one too (see "Searching from a page"). Two ready-made sources cover the common cases: BitCommandPaletteDelegateSource wraps a delegate (taking the query, or the query and the context, or - see "Paging" - a cursor too), and BitCommandPaletteStaticSource serves an in-memory list, fixed or read again on every search, through the palette's own matcher and weights, returning its best maxResults (50) - always re-ranked, asked from the first character.
This page registered an @ People mode whose sources are a DPeopleSource (re-ranked, 250 ms of fake latency) and a BitCommandPaletteStaticSource of teams, and a default-mode "Service status" source - a delegate source, ordered, asked from 3 characters - whose behaviour you pick. Open the modal palette and type at your normal speed: the table lists every call that reached a source, newest first, and how it ended. Pick "Never answers" and search "status": the call is cancelled after 10 s and the retry row appears.


The Service status source

Started Source Query Outcome Results Took
No source has been asked yet.

Paging

A source with more results than it should send at once answers through SearchPageAsync(query, cursor, context, cancellationToken): the first page with a null cursor, each next one with the NextCursor of the page before. It returns a BitCommandPaletteSourcePage(Commands, NextCursor, TotalCount); HasMore is true while there is a next cursor. A page with a cursor gets a row after the source's results - "Show 50 more…" when the page says TotalCount (BitCommandPaletteStrings.MoreResults), "Show more…" when it does not (LoadMore) - which loads the next page, appends it without repeating what is already listed, and selects its first row. A next page that fails keeps the pages already listed, with a row to try again. A source that implements only SearchAsync answers a single page: SearchPageAsync has a default implementation that calls it.
BitCommandPaletteDelegateSource has a paging constructor whose delegate takes the query, the cursor, the context and the token. The cursor is whatever the server understands - an offset, as here, or an opaque continuation token.
This page registered a $ Packages mode over 60 packages, 10 at a time, with MinQueryLength = 0 so it opens on a list. Open it, scroll to "Show 50 more…" and choose it; the call log of the "Async sources" section shows every page it loaded.

Searching from a page

A command's page can search as the user types instead of listing what it has - an "Assign to…" over thousands of people, which a lazily loaded page would have to download whole. .Source(name, search) on a command builder turns the command into a page whose rows come from search(query, cancellationToken); it is asked when the page opens (minQueryLength is 0 by default here, so the page never opens empty) and for every query typed on it, with the same debounce, cancellation, timeout, retry row and loading state as the root's sources. .Source(name, searchPage) takes a paging delegate - query, cursor, token - with its "Show more…" row, and .Source(IBitCommandPaletteSource) takes any source, whose BitCommandPaletteSourceContext.ParentCommandId then says which page asked. ChildrenPlaceholder sets the page's placeholder.
On a MultiSelect page the checked rows are kept across searches, so Ctrl+Enter (Cmd+Enter) hands the handler everything checked, whichever query listed it.
Open "Assign to…" and search people, open "Request reviews…" and check people from several searches before applying, or open "Browse packages…" for a paged page source.

Assign to…
Request reviews…
Browse packages…

Nobody assigned yet.

Performance

A palette searches on every keystroke, so the hot path is written for it, and a registry of thousands of commands stays fast:
  • The registry is read once, not per keystroke: the palette keeps a snapshot and takes a new one only when the registry, the commands declared in its markup or its Commands parameter changed. Pass Commands a new collection to change it, or call IBitCommandPaletteService.Refresh() after changing one in place. Global shortcuts are re-evaluated when the snapshot changes, when the palette opens or closes, after a command ran and on Refresh() - not while typing.
  • The query is parsed once per keystroke, not once per command, and the matcher allocates nothing per field but the highlighted positions: it reuses per-thread buffers, keeps one row of scores, rejects texts that do not hold the term before the dynamic programming starts, and aligns a field past MaxOptimalLength greedily without buffers.
  • Ranking only sorts what it keeps: only the best options.MaxResults (150) rows are rendered per query, held in a heap and sorted. Raise it for long lists - and turn on Virtualize (on one palette, or options.Virtualize), recommended above about 500 visible rows, which renders only the rows on screen. While it is on, every row is options.RowHeight (44 px) tall, whatever --bit-CommandPalette-row-height says, and each option carries aria-posinset and aria-setsize, since rows cannot be wrapped in their groups.
  • Results arriving from async sources reuse the registry's matches for the same query instead of matching again.
  • Typing never lags on WebAssembly, where search and painting share the page's only thread: when a search took longer than a frame (8 ms), the palette lets the keystroke paint first and folds the keys typed meanwhile into one search; navigation keys still act on the latest query. On the server each keystroke round-trips anyway, so it searches right away.
Register, or serve from a source. Registered commands (paletteService.Register(commands), or a palette's Commands) are part of the registry: listed on the empty query, matched by every keystroke, reachable by Find, ExecuteAsync and their shortcuts. A BitCommandPaletteStaticSource keeps a large list out of the registry instead: asked only once something is typed, it matches its items with the app's matcher and weights and hands back only its best maxResults (50), under its own heading - right for a catalog of thousands of records where only what was searched for should show.
The numbers below are measured here, in your browser. Pick a size: the inline palette holds that many synthetic commands - type in it. "Measure searches" times the matcher and the ranker the palette runs, over the same commands (the median of 5 runs per query), and one whole SearchAsync of a static source over them. "Register them with the service" adds them to the modal palette's registry as well (and times it); they are removed when you unregister them or leave the page.

Commands

Command 1Synthetic entry #1
Command 2Synthetic entry #2
Command 3Synthetic entry #3
Command 4Synthetic entry #4
Command 5Synthetic entry #5
Command 6Synthetic entry #6
Command 7Synthetic entry #7
Command 8Synthetic entry #8
Command 9Synthetic entry #9
Command 10Synthetic entry #10
Command 11Synthetic entry #11
Command 12Synthetic entry #12
Command 13Synthetic entry #13
Command 14Synthetic entry #14
Command 15Synthetic entry #15
Command 16Synthetic entry #16
Command 17Synthetic entry #17
Command 18Synthetic entry #18
Command 19Synthetic entry #19
Command 20Synthetic entry #20
Command 21Synthetic entry #21
Command 22Synthetic entry #22
Command 23Synthetic entry #23
Command 24Synthetic entry #24
Command 25Synthetic entry #25
Command 26Synthetic entry #26
Command 27Synthetic entry #27
Command 28Synthetic entry #28
Command 29Synthetic entry #29
Command 30Synthetic entry #30
Command 31Synthetic entry #31
Command 32Synthetic entry #32
Command 33Synthetic entry #33
Command 34Synthetic entry #34
Command 35Synthetic entry #35
Command 36Synthetic entry #36
Command 37Synthetic entry #37
Command 38Synthetic entry #38
Command 39Synthetic entry #39
Command 40Synthetic entry #40
Command 41Synthetic entry #41
Command 42Synthetic entry #42
Command 43Synthetic entry #43
Command 44Synthetic entry #44
Command 45Synthetic entry #45
Command 46Synthetic entry #46
Command 47Synthetic entry #47
Command 48Synthetic entry #48
Command 49Synthetic entry #49
Command 50Synthetic entry #50
Command 51Synthetic entry #51
Command 52Synthetic entry #52
Command 53Synthetic entry #53
Command 54Synthetic entry #54
Command 55Synthetic entry #55
Command 56Synthetic entry #56
Command 57Synthetic entry #57
Command 58Synthetic entry #58
Command 59Synthetic entry #59
Command 60Synthetic entry #60
Command 61Synthetic entry #61
Command 62Synthetic entry #62
Command 63Synthetic entry #63
Command 64Synthetic entry #64
Command 65Synthetic entry #65
Command 66Synthetic entry #66
Command 67Synthetic entry #67
Command 68Synthetic entry #68
Command 69Synthetic entry #69
Command 70Synthetic entry #70
Command 71Synthetic entry #71
Command 72Synthetic entry #72
Command 73Synthetic entry #73
Command 74Synthetic entry #74
Command 75Synthetic entry #75
Command 76Synthetic entry #76
Command 77Synthetic entry #77
Command 78Synthetic entry #78
Command 79Synthetic entry #79
Command 80Synthetic entry #80
Command 81Synthetic entry #81
Command 82Synthetic entry #82
Command 83Synthetic entry #83
Command 84Synthetic entry #84
Command 85Synthetic entry #85
Command 86Synthetic entry #86
Command 87Synthetic entry #87
Command 88Synthetic entry #88
Command 89Synthetic entry #89
Command 90Synthetic entry #90
Command 91Synthetic entry #91
Command 92Synthetic entry #92
Command 93Synthetic entry #93
Command 94Synthetic entry #94
Command 95Synthetic entry #95
Command 96Synthetic entry #96
Command 97Synthetic entry #97
Command 98Synthetic entry #98
Command 99Synthetic entry #99
Command 100Synthetic entry #100
Command 101Synthetic entry #101
Command 102Synthetic entry #102
Command 103Synthetic entry #103
Command 104Synthetic entry #104
Command 105Synthetic entry #105
Command 106Synthetic entry #106
Command 107Synthetic entry #107
Command 108Synthetic entry #108
Command 109Synthetic entry #109
Command 110Synthetic entry #110
Command 111Synthetic entry #111
Command 112Synthetic entry #112
Command 113Synthetic entry #113
Command 114Synthetic entry #114
Command 115Synthetic entry #115
Command 116Synthetic entry #116
Command 117Synthetic entry #117
Command 118Synthetic entry #118
Command 119Synthetic entry #119
Command 120Synthetic entry #120
Command 121Synthetic entry #121
Command 122Synthetic entry #122
Command 123Synthetic entry #123
Command 124Synthetic entry #124
Command 125Synthetic entry #125
Command 126Synthetic entry #126
Command 127Synthetic entry #127
Command 128Synthetic entry #128
Command 129Synthetic entry #129
Command 130Synthetic entry #130
Command 131Synthetic entry #131
Command 132Synthetic entry #132
Command 133Synthetic entry #133
Command 134Synthetic entry #134
Command 135Synthetic entry #135
Command 136Synthetic entry #136
Command 137Synthetic entry #137
Command 138Synthetic entry #138
Command 139Synthetic entry #139
Command 140Synthetic entry #140
Command 141Synthetic entry #141
Command 142Synthetic entry #142
Command 143Synthetic entry #143
Command 144Synthetic entry #144
Command 145Synthetic entry #145
Command 146Synthetic entry #146
Command 147Synthetic entry #147
Command 148Synthetic entry #148
Command 149Synthetic entry #149
Command 150Synthetic entry #150

Feedback

Found a mistake, a gap, or something that could be clearer? Every page and every component is one click from its source.