MCPcopy
hub / github.com/anomalyco/opencode / registerKeyAliases

Function registerKeyAliases

packages/tui/src/keymap.tsx:128–134  ·  view source on GitHub ↗
(keymap: OpenTuiKeymap)

Source from the content-addressed store, hash-verified

126}
127
128function registerKeyAliases(keymap: OpenTuiKeymap) {
129 return keymap.appendBindingExpander((ctx) => {
130 const key = expandKeyAliases(ctx.input)
131 if (!key) return
132 return [{ key, displays: ctx.displays }]
133 })
134}
135
136const inputCommands = [
137 "input.move.left",

Callers 1

registerOpencodeKeymapFunction · 0.85

Calls 1

expandKeyAliasesFunction · 0.85

Tested by

no test coverage detected