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

Function parseChord

source code/keybindings/parser.ts:82–86  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

80 * Parse a chord string like "ctrl+k ctrl+s" into an array of ParsedKeystrokes.
81 */
82export function parseChord(input: string): Chord {
83 // A lone space character IS the space key binding, not a separator
84 if (input === ' ') return [parseKeystroke('space')]
85 return input.trim().split(/\s+/).map(parseKeystroke)
86}
87
88/**
89 * 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