MCPcopy Create free account
hub / github.com/freecodexyz/free-code / chordToDisplayString

Function chordToDisplayString

src/keybindings/parser.ts:181–186  ·  view source on GitHub ↗
(
  chord: Chord,
  platform: DisplayPlatform = 'linux',
)

Source from the content-addressed store, hash-verified

179 * Convert a Chord to a platform-appropriate display string.
180 */
181export function chordToDisplayString(
182 chord: Chord,
183 platform: DisplayPlatform = 'linux',
184): string {
185 return chord.map(ks => keystrokeToDisplayString(ks, platform)).join(' ')
186}
187
188/**
189 * Parse keybinding blocks (from JSON config) into a flat list of ParsedBindings.

Callers

nothing calls this directly

Calls 1

keystrokeToDisplayStringFunction · 0.85

Tested by

no test coverage detected