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

Function parseChord

src/keybindings/parser.ts:80–84  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

78 * Parse a chord string like "ctrl+k ctrl+s" into an array of ParsedKeystrokes.
79 */
80export function parseChord(input: string): Chord {
81 // A lone space character IS the space key binding, not a separator
82 if (input === ' ') return [parseKeystroke('space')]
83 return input.trim().split(/\s+/).map(parseKeystroke)
84}
85
86/**
87 * Convert a ParsedKeystroke to its canonical string representation for display.

Callers 2

parseBindingsFunction · 0.85
validateBlockFunction · 0.85

Calls 1

parseKeystrokeFunction · 0.85

Tested by

no test coverage detected