Skip to content

feat: Add CommandRegistry and default command descriptions.#217

Open
Le0C wants to merge 1 commit into
MetaCell:feat/command-palettefrom
Le0C:feat/command-registry
Open

feat: Add CommandRegistry and default command descriptions.#217
Le0C wants to merge 1 commit into
MetaCell:feat/command-palettefrom
Le0C:feat/command-registry

Conversation

@Le0C

@Le0C Le0C commented Jul 20, 2026

Copy link
Copy Markdown

This PR makes the command set discoverable independent of keybinds, and makes it carry human readable names/descriptions.

  • CommandRegistry - a global registry of commands. Each command is declared once with a stable id, label, optional description/category/defaultBinding, and availability signal. CommandInfo is an explicit discriminated union on type rather than inferring behaviour from which fields are present. Registration returns a disposer, so features can register/unregister commands over their own lifetime
  • default_commands.ts - Seeds the built-in commands with labels + help test.
  • CommandCatalog - now enumerates the registry as the authoritative comamnd list.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant