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

Function bind

packages/app/src/context/command.tsx:261–266  ·  view source on GitHub ↗
(id: string, def: KeybindConfig | undefined)

Source from the content-addressed store, hash-verified

259 )
260
261 const bind = (id: string, def: KeybindConfig | undefined) => {
262 const custom = settings.keybinds.get(actionId(id))
263 const config = custom ?? def
264 if (!config || config === "none") return
265 return config
266 }
267
268 const registered = createMemo(() => {
269 const seen = new Set<string>()

Callers 2

command.tsxFile · 0.70
keybindConfigFunction · 0.70

Calls 2

actionIdFunction · 0.85
getMethod · 0.65

Tested by

no test coverage detected