feat add command palette component

This commit is contained in:
2026-11-04 09:37:47 +07:00
parent fa73124ee4
commit 4bfc816cbe
7 changed files with 1040 additions and 11 deletions
+5 -2
View File
@@ -78,6 +78,9 @@ pub mod status_dot;
#[cfg(feature = "combobox")]
pub mod combobox;
#[cfg(feature = "command_palette")]
pub mod command_palette;
#[cfg(feature = "toast")]
pub mod toast;
@@ -89,8 +92,8 @@ pub fn init(cx: &mut App) {
gpui_native_theme::Theme::init(cx);
#[cfg(feature = "input")]
input::bind_input_keys(cx, None);
// Load-bearing order: the combobox's bindings must win the depth tie
// with the input's, and gpui breaks ties by later registration.
#[cfg(feature = "combobox")]
combobox::bind_combobox_keys(cx);
#[cfg(feature = "command_palette")]
command_palette::bind_command_palette_keys(cx);
}