Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.
Merge `quick_action_bar` into `zed` (#21026)
Marshall Bowerse0245b3f3042
diff --git a/Cargo.lock b/Cargo.lockindex 89c5ae81802..ddd2e400e7f 100644--- a/Cargo.lock+++ b/Cargo.lock@@ -9426,24 +9426,6 @@ dependencies = ["memchr",]-[[package]]-name = "quick_action_bar"-version = "0.1.0"-dependencies = [- "assistant",- "editor",- "gpui",- "markdown_preview",- "picker",- "repl",- "search",- "settings",- "ui",- "util",- "workspace",- "zed_actions",-]-[[package]]name = "quinn"version = "0.11.6"@@ -15541,12 +15523,12 @@ dependencies = ["outline_panel","parking_lot","paths",+ "picker","profiling","project","project_panel","project_symbols","proto",- "quick_action_bar","recent_projects","release_channel","remote",diff --git a/Cargo.toml b/Cargo.tomlindex 58239800dac..c12079a26ac 100644--- a/Cargo.toml+++ b/Cargo.toml@@ -81,7 +81,6 @@ members = ["crates/project_panel","crates/project_symbols","crates/proto",- "crates/quick_action_bar","crates/recent_projects","crates/refineable","crates/refineable/derive_refineable",@@ -259,7 +258,6 @@ project = { path = "crates/project" }project_panel = { path = "crates/project_panel" }project_symbols = { path = "crates/project_symbols" }proto = { path = "crates/proto" }-quick_action_bar = { path = "crates/quick_action_bar" }recent_projects = { path = "crates/recent_projects" }refineable = { path = "crates/refineable" }release_channel = { path = "crates/release_channel" }diff --git a/crates/quick_action_bar/Cargo.toml b/crates/quick_action_bar/Cargo.tomldeleted file mode 100644index b3228820f62..00000000000--- a/crates/quick_action_bar/Cargo.toml+++ /dev/null@@ -1,32 +0,0 @@-[package]-name = "quick_action_bar"-version = "0.1.0"-edition = "2021"-publish = false-license = "GPL-3.0-or-later"--[lints]-workspace = true--[lib]-path = "src/quick_action_bar.rs"-doctest = false--[dependencies]-assistant.workspace = true-editor.workspace = true-gpui.workspace = true-markdown_preview.workspace = true-repl.workspace = true-search.workspace = true-settings.workspace = true-ui.workspace = true-util.workspace = true-workspace.workspace = true-zed_actions.workspace = true-picker.workspace = true--[dev-dependencies]-editor = { workspace = true, features = ["test-support"] }-gpui = { workspace = true, features = ["test-support"] }-workspace = { workspace = true, features = ["test-support"] }diff --git a/crates/quick_action_bar/LICENSE-GPL b/crates/quick_action_bar/LICENSE-GPLdeleted file mode 120000index 89e542f750c..00000000000--- a/crates/quick_action_bar/LICENSE-GPL+++ /dev/null@@ -1 +0,0 @@-../../LICENSE-GPL\ No newline at end of filediff --git a/crates/zed/Cargo.toml b/crates/zed/Cargo.tomlindex 6c447bcabe8..52ec265480b 100644--- a/crates/zed/Cargo.toml+++ b/crates/zed/Cargo.toml@@ -78,12 +78,12 @@ outline.workspace = trueoutline_panel.workspace = trueparking_lot.workspace = truepaths.workspace = true+picker.workspace = trueprofiling.workspace = trueproject.workspace = trueproject_panel.workspace = trueproject_symbols.workspace = trueproto.workspace = true-quick_action_bar.workspace = truerecent_projects.workspace = truerelease_channel.workspace = trueremote.workspace = truediff --git a/crates/zed/src/zed.rs b/crates/zed/src/zed.rsindex b2dbc087b03..322ea3610b6 100644--- a/crates/zed/src/zed.rs+++ b/crates/zed/src/zed.rs@@ -6,6 +6,7 @@ pub(crate) mod linux_prompts;#[cfg(target_os = "macos")]pub(crate) mod mac_only_instance;mod open_listener;+mod quick_action_bar;#[cfg(target_os = "windows")]pub(crate) mod windows_only_instance;diff --git a/crates/quick_action_bar/src/quick_action_bar.rs b/crates/zed/src/zed/quick_action_bar.rssimilarity index 99%rename from crates/quick_action_bar/src/quick_action_bar.rsrename to crates/zed/src/zed/quick_action_bar.rsindex 78496200937..85090a1b979 100644--- a/crates/quick_action_bar/src/quick_action_bar.rs+++ b/crates/zed/src/zed/quick_action_bar.rs@@ -1,3 +1,6 @@+mod markdown_preview;+mod repl_menu;+use assistant::assistant_settings::AssistantSettings;use assistant::AssistantPanel;use editor::actions::{@@ -6,7 +9,6 @@ use editor::actions::{SelectNext, SelectSmallerSyntaxNode, ToggleGoToLine, ToggleOutline,};use editor::{Editor, EditorSettings};-use gpui::{Action, AnchorCorner, ClickEvent, ElementId, EventEmitter, FocusHandle, FocusableView,InteractiveElement, ParentElement, Render, Styled, Subscription, View, ViewContext, WeakView,@@ -22,9 +24,6 @@ use workspace::{};use zed_actions::InlineAssist;-mod repl_menu;-mod toggle_markdown_preview;-pub struct QuickActionBar {_inlay_hints_enabled_subscription: Option<Subscription>,active_item: Option<Box<dyn ItemHandle>>,diff --git a/crates/quick_action_bar/src/toggle_markdown_preview.rs b/crates/zed/src/zed/quick_action_bar/markdown_preview.rssimilarity index 98%rename from crates/quick_action_bar/src/toggle_markdown_preview.rsrename to crates/zed/src/zed/quick_action_bar/markdown_preview.rsindex 527da3a568d..5162cb0644b 100644--- a/crates/quick_action_bar/src/toggle_markdown_preview.rs+++ b/crates/zed/src/zed/quick_action_bar/markdown_preview.rs@@ -5,7 +5,7 @@ use markdown_preview::{use ui::{prelude::*, text_for_keystroke, IconButtonShape, Tooltip};use workspace::Workspace;-use crate::QuickActionBar;+use super::QuickActionBar;impl QuickActionBar {pub fn render_toggle_markdown_preview(diff --git a/crates/quick_action_bar/src/repl_menu.rs b/crates/zed/src/zed/quick_action_bar/repl_menu.rssimilarity index 99%rename from crates/quick_action_bar/src/repl_menu.rsrename to crates/zed/src/zed/quick_action_bar/repl_menu.rsindex b9ae940579b..5f616da9d3a 100644--- a/crates/quick_action_bar/src/repl_menu.rs+++ b/crates/zed/src/zed/quick_action_bar/repl_menu.rs@@ -1,5 +1,6 @@use std::time::Duration;+use gpui::ElementId;use gpui::{percentage, Animation, AnimationExt, AnyElement, Transformation, View};use picker::Picker;use repl::{@@ -11,11 +12,9 @@ use ui::{prelude::*, ButtonLike, ContextMenu, IconWithIndicator, Indicator, IntoElement, PopoverMenu,PopoverMenuHandle, Tooltip,};--use gpui::ElementId;use util::ResultExt;-use crate::QuickActionBar;+use super::QuickActionBar;const ZED_REPL_DOCUMENTATION: &str = "https://zed.dev/docs/repl";