Hotkey Sequence API Reference

HotkeySequence

Type Alias: HotkeySequence

ts
type HotkeySequence = Hotkey[];

Defined in: sequence-manager.ts:48

A sequence of hotkeys for Vim-style shortcuts.

Each element is one step (a Hotkey string). Steps may include modifiers; the same modifier can appear on consecutive steps (e.g. Shift+R then Shift+T). Modifier-only key events do not advance or reset matching—see SequenceManager.

Example

ts
const gotoTop: HotkeySequence = ['G', 'G']  // gg
const deleteLine: HotkeySequence = ['D', 'D']  // dd
const deleteWord: HotkeySequence = ['D', 'I', 'W']  // diw
const chainedShift: HotkeySequence = ['Shift+R', 'Shift+T']