Skip to main content

gpui_commands/
lib.rs

1//! # gpui-commands
2//!
3//! A coherence layer for the GPUI framework: one registry, one API, and a
4//! searchable command palette for every command an application supports.
5//!
6//! - [`Command`] — a display name, category, underlying GPUI action, optional
7//!   keybinding, and handler, built with a chained builder.
8//! - [`CommandRegistry`] — the single source of truth for every command an
9//!   app registers, with automatic `bind_keys` registration.
10//! - [`CommandPalette`] — a searchable, keyboard-driven overlay over the app,
11//!   opened with a configurable trigger keybinding (`cmd-shift-p` by default).
12//!
13//! See the crate README for a full quick-start example.
14
15mod command;
16mod fuzzy;
17mod palette;
18mod registry;
19
20pub use command::Command;
21pub use palette::CommandPalette;
22pub use registry::CommandRegistry;