MCPcopy Index your code
hub / github.com/anomalyco/opencode / formatKeybindParts

Function formatKeybindParts

packages/app/src/context/command.tsx:218–222  ·  view source on GitHub ↗
(config: string, t?: (key: KeyLabel) => string)

Source from the content-addressed store, hash-verified

216}
217
218export function formatKeybindParts(config: string, t?: (key: KeyLabel) => string): string[] {
219 if (!config || config === "none") return []
220 const keybind = parseKeybind(config)[0]
221 return keybind ? displayKeybindParts(keybind, t) : []
222}
223
224export function formatKeybind(config: string, t?: (key: KeyLabel) => string): string {
225 const parts = formatKeybindParts(config, t)

Callers 3

formatKeybindFunction · 0.85
formatKeybindKeysFunction · 0.85
keybindPartsFunction · 0.85

Calls 2

parseKeybindFunction · 0.85
displayKeybindPartsFunction · 0.85

Tested by

no test coverage detected