Add split actions to the application menu
This commit is contained in:
parent
f22d69aa74
commit
67414deb82
1 changed files with 21 additions and 0 deletions
|
@ -194,6 +194,27 @@ pub fn menus() -> Vec<Menu<'static>> {
|
||||||
name: "Toggle Right Sidebar",
|
name: "Toggle Right Sidebar",
|
||||||
action: Box::new(workspace::ToggleRightSidebar),
|
action: Box::new(workspace::ToggleRightSidebar),
|
||||||
},
|
},
|
||||||
|
MenuItem::Submenu(Menu {
|
||||||
|
name: "Editor Layout",
|
||||||
|
items: vec![
|
||||||
|
MenuItem::Action {
|
||||||
|
name: "Split Up",
|
||||||
|
action: Box::new(workspace::SplitUp),
|
||||||
|
},
|
||||||
|
MenuItem::Action {
|
||||||
|
name: "Split Down",
|
||||||
|
action: Box::new(workspace::SplitDown),
|
||||||
|
},
|
||||||
|
MenuItem::Action {
|
||||||
|
name: "Split Left",
|
||||||
|
action: Box::new(workspace::SplitLeft),
|
||||||
|
},
|
||||||
|
MenuItem::Action {
|
||||||
|
name: "Split Right",
|
||||||
|
action: Box::new(workspace::SplitRight),
|
||||||
|
},
|
||||||
|
],
|
||||||
|
}),
|
||||||
MenuItem::Separator,
|
MenuItem::Separator,
|
||||||
MenuItem::Action {
|
MenuItem::Action {
|
||||||
name: "Project Panel",
|
name: "Project Panel",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue