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

Function keybindConfig

packages/app/src/context/command.tsx:416–420  ·  view source on GitHub ↗
(id: string)

Source from the content-addressed store, hash-verified

414 }
415
416 const keybindConfig = (id: string) => {
417 if (id === PALETTE_ID) return settings.keybinds.get(PALETTE_ID) ?? DEFAULT_PALETTE_KEYBIND
418 const base = actionId(id)
419 return options().find((x) => actionId(x.id) === base)?.keybind ?? bind(base, catalog[base]?.keybind)
420 }
421
422 return {
423 register,

Callers 2

keybindFunction · 0.85
keybindPartsFunction · 0.85

Calls 5

actionIdFunction · 0.85
optionsFunction · 0.70
bindFunction · 0.70
getMethod · 0.65
findMethod · 0.65

Tested by

no test coverage detected