MCPcopy Create free account
hub / github.com/anomalyco/opencode / match

Function match

packages/opencode/src/cli/cmd/run/footer.command.tsx:193–202  ·  view source on GitHub ↗
(query: string, entries: T[])

Source from the content-addressed store, hash-verified

191}
192
193function match<T extends PanelEntry>(query: string, entries: T[]) {
194 const text = query.trim()
195 if (!text) {
196 return entries
197 }
198
199 return fuzzysort
200 .go(text, entries, { keys: ["display", "category", "description", "keywords"] })
201 .map((item) => item.obj)
202}
203
204function PanelShell(props: {
205 title: string

Callers 6

RunCommandMenuBodyFunction · 0.70
RunSubagentSelectBodyFunction · 0.70
RunSkillSelectBodyFunction · 0.70
RunVariantSelectBodyFunction · 0.70
RunModelSelectBodyFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected