Keybinding Profile Transfer (lib/profile-transfer.ts)

atlas · src/features/keybindings/lib/profile-transfer.ts · typescript · Apache-2.0
dev-tools, files, tag:keybindings, tag:serialization, tag:config

Serializes and parses a portable keybinding profile (preset + overrides) for clipboard export/import, with versioning and forward-compatible unknown-id handling.

// Source: https://github.com/pacifio/atlas | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
// Provided via justclaw.it.com; keep this notice with the code.
/**
 * The portable form of ONE keybinding profile — what "Copy profile" puts on
 * the clipboard and "Import profile" reads back as a new profile.
 *
 * It carries the preset and the overrides, never the resolved chords.
 * Pinning every command as an override would freeze the whole keymap against
 * later changes to Atlas's defaults, so a profile shared today would slowly
 * rot; sharing what the user actually chose keeps them on the moving defaults
 * for everything else.
 *
 * `atlasKeybindings` is the format version, bumped only for a change an older
 * build could not read correctly. 

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key