Skip to content

armgit / zed

Public Imported from GitHub
0

Code at the speed of thought – Zed is a high-performance, multiplayer code editor from the creators of Atom and Tree-sitter.

Remove toggle right sidebar command

Joseph Lyonsd42d495cb0bb
diff --git a/assets/keymaps/default.json b/assets/keymaps/default.json
index ea8c3414612..17168f679f7 100644
--- a/assets/keymaps/default.json
+++ b/assets/keymaps/default.json
@@ -430,13 +430,6 @@
"cmd-enter": "project_search::SearchInNew"
}
},
- {
- "context": "Workspace",
- "bindings": {
- "shift-escape": "dock::FocusDock",
- "cmd-shift-b": "workspace::ToggleRightSidebar"
- }
- },
{
"bindings": {
"cmd-shift-k cmd-shift-right": "dock::AnchorDockRight",
diff --git a/crates/workspace/src/workspace.rs b/crates/workspace/src/workspace.rs
index 9a65f5df8ac..9d209c6f1a8 100644
--- a/crates/workspace/src/workspace.rs
+++ b/crates/workspace/src/workspace.rs
@@ -96,7 +96,6 @@ actions!(
ActivateNextPane,
FollowNextCollaborator,
ToggleLeftSidebar,
- ToggleRightSidebar,
NewTerminal,
NewSearch,
Feedback,
@@ -230,9 +229,6 @@ pub fn init(app_state: Arc<AppState>, cx: &mut MutableAppContext) {
cx.add_action(|workspace: &mut Workspace, _: &ToggleLeftSidebar, cx| {
workspace.toggle_sidebar(SidebarSide::Left, cx);
});
- cx.add_action(|workspace: &mut Workspace, _: &ToggleRightSidebar, cx| {
- workspace.toggle_sidebar(SidebarSide::Right, cx);
- });
cx.add_action(Workspace::activate_pane_at_index);
cx.add_action(Workspace::split_pane_with_item);
diff --git a/crates/zed/src/menus.rs b/crates/zed/src/menus.rs
index 82b72611c2f..09525f14e5a 100644
--- a/crates/zed/src/menus.rs
+++ b/crates/zed/src/menus.rs
@@ -219,10 +219,6 @@ pub fn menus() -> Vec<Menu<'static>> {
name: "Toggle Left Sidebar",
action: Box::new(workspace::ToggleLeftSidebar),
},
- MenuItem::Action {
- name: "Toggle Right Sidebar",
- action: Box::new(workspace::ToggleRightSidebar),
- },
MenuItem::Submenu(Menu {
name: "Editor Layout",
items: vec![