MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / normalizeSequenceBinding

Function normalizeSequenceBinding

packages/app-core/src/lib/keymaps.ts:1293–1300  ·  view source on GitHub ↗
(input: string)

Source from the content-addressed store, hash-verified

1291}
1292
1293export function normalizeSequenceBinding(input: string): string | null {
1294 const tokens = input
1295 .split(/\s+/)
1296 .map((token) => normalizeSequenceToken(token))
1297 .filter((token): token is string => !!token);
1298 if (tokens.length === 0) return null;
1299 return tokens.join(" ");
1300}
1301
1302export function normalizeKeymapBinding(
1303 id: KeymapId,

Callers 2

keymaps.tsFile · 0.85
normalizeKeymapBindingFunction · 0.85

Calls 1

normalizeSequenceTokenFunction · 0.85

Tested by

no test coverage detected