Skip to content

Commit

Permalink
Merge quick_action_bar into zed
Browse files Browse the repository at this point in the history
  • Loading branch information
maxdeviant committed Nov 21, 2024
1 parent 9d95da5 commit 515e5ff
Show file tree
Hide file tree
Showing 9 changed files with 9 additions and 63 deletions.
20 changes: 1 addition & 19 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 0 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down Expand Up @@ -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" }
Expand Down
32 changes: 0 additions & 32 deletions crates/quick_action_bar/Cargo.toml

This file was deleted.

1 change: 0 additions & 1 deletion crates/quick_action_bar/LICENSE-GPL

This file was deleted.

2 changes: 1 addition & 1 deletion crates/zed/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,12 @@ outline.workspace = true
outline_panel.workspace = true
parking_lot.workspace = true
paths.workspace = true
picker.workspace = true
profiling.workspace = true
project.workspace = true
project_panel.workspace = true
project_symbols.workspace = true
proto.workspace = true
quick_action_bar.workspace = true
recent_projects.workspace = true
release_channel.workspace = true
remote.workspace = true
Expand Down
1 change: 1 addition & 0 deletions crates/zed/src/zed.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
mod markdown_preview;
mod repl_menu;

use assistant::assistant_settings::AssistantSettings;
use assistant::AssistantPanel;
use editor::actions::{
Expand All @@ -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,
Expand All @@ -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>>,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
use std::time::Duration;

use gpui::ElementId;
use gpui::{percentage, Animation, AnimationExt, AnyElement, Transformation, View};
use picker::Picker;
use repl::{
Expand All @@ -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";

Expand Down

0 comments on commit 515e5ff

Please sign in to comment.