()
| 38 | * Creates a fully valid JSON file with all default bindings that users can customize. |
| 39 | */ |
| 40 | export 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 |
no test coverage detected