MCPcopy Create free account
hub / github.com/AnukarOP/claude-code-leaked / parseBindings

Function parseBindings

source code/keybindings/parser.ts:193–205  ·  view source on GitHub ↗
(blocks: KeybindingBlock[])

Source from the content-addressed store, hash-verified

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

Callers 3

getDefaultParsedBindingsFunction · 0.85
loadKeybindingsFunction · 0.85

Calls 2

parseChordFunction · 0.85
entriesMethod · 0.80

Tested by

no test coverage detected