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

Function generateKeybindingsTemplate

src/keybindings/template.ts:40–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

38 * Creates a fully valid JSON file with all default bindings that users can customize.
39 */
40export function generateKeybindingsTemplate(): string {
41 // Filter out reserved shortcuts that cannot be rebound
42 const bindings = filterReservedShortcuts(DEFAULT_BINDINGS)
43
44 // Format as object wrapper with bindings array
45 const config = {
46 $schema: 'https://www.schemastore.org/claude-code-keybindings.json',
47 $docs: 'https://code.claude.com/docs/en/keybindings',
48 bindings,
49 }
50
51 return jsonStringify(config, null, 2) + '\n'
52}
53

Callers 1

callFunction · 0.85

Calls 2

filterReservedShortcutsFunction · 0.85
jsonStringifyFunction · 0.85

Tested by

no test coverage detected