R
fn

compileKeymaps

Merge ordered keymaps into a single normalized lookup. Earlier keymaps win, so pass user overrides before the defaults: `compileKeymaps([user, defaults], …)`.

Signature

ts
export function compileKeymaps(keymaps: readonly Keymap[], platform: Platform): Map<string, Command>{ ... }

Parameters

ParameterTypeDescription
keymapsreadonly Keymap[]
platformPlatform

Returns

Map<string, Command>