This folder documents the current behavior of the Keyboard Commands Figma plugin as implemented in this repository.
The plugin is not just a flat list of shortcuts. It is a small command language with:
192registered commands insrc/commands.ts- typed value parsing for numbers, expressions, colors, strings, binding references, and comma-chains
- autocomplete that is selection-aware
- binding search for styles, variables, libraries, instance properties, component swaps, selection colors, and override resets
- command history and per-command recent-value memory
- export flows backed by a hidden UI and ZIP bundling
- a custom local library index stored in
figma.clientStorage
- Command Language Explains how users type commands, chain them, use bindings, trigger autocomplete, and replay history.
- Runtime And Storage Explains plugin metadata, storage keys, caching, export UI behavior, library indexing, and search resolution.
- Components And Instances
- Geometry, Layout, And Alignment
- Styles And Effects
- Text
- Layers, Export, History, And Libraries
These docs are derived from the current implementation, mainly:
src/commands.tssrc/index.tssrc/command-execution-plan.tssrc/command-input.tssrc/utils.tssrc/storage.tssrc/history.tssrc/recent-values.tssrc/implementations/*.tstests/*.js
If behavior ever diverges, the source files above win.