Docs
Cloudflare
Railway
CodeRabbit
Netlify
WorkOS
SerpAPI
AG Grid
OpenRouter
Clerk
Electric
Sentry
Unkey
Prisma
Cloudflare
Railway
CodeRabbit
Netlify
WorkOS
SerpAPI
AG Grid
OpenRouter
Clerk
Electric
Sentry
Unkey
Prisma
API Reference
Hotkeys API Reference
Hotkey Sequence API Reference
Key hold & held keys API Reference
Hotkey Recorder API Reference
Hotkey Sequence Recorder API Reference
Normalization & format API Reference
Hotkey Sequence API Reference

HotkeySequence

Type Alias: HotkeySequence

ts
type HotkeySequence = Hotkey[];
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']
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']