MCPcopy Index your code
hub / github.com/codeaashu/claude-code / parseBindings

Function parseBindings

src/keybindings/parser.ts:191–203  ·  view source on GitHub ↗
(blocks: KeybindingBlock[])

Source from the content-addressed store, hash-verified

189 * Parse keybinding blocks (from JSON config) into a flat list of ParsedBindings.
190 */
191export function parseBindings(blocks: KeybindingBlock[]): ParsedBinding[] {
192 const bindings: ParsedBinding[] = []
193 for (const block of blocks) {
194 for (const [key, action] of Object.entries(block.bindings)) {
195 bindings.push({
196 chord: parseChord(key),
197 action,
198 context: block.context,
199 })
200 }
201 }
202 return bindings
203}
204

Callers 3

getDefaultParsedBindingsFunction · 0.85
loadKeybindingsFunction · 0.85

Calls 3

parseChordFunction · 0.85
entriesMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected