adds schema view and schema generating command
This commit is contained in:
@@ -19,7 +19,7 @@ public struct HelderScene: Scene {
|
||||
}
|
||||
}
|
||||
|
||||
/// The menu bar. Shortcuts the key router owns (⌘F, ⌘G, ⌘1–⌘3, ⌘L, ⌘.) are shown here too; the router
|
||||
/// The menu bar. Shortcuts the key router owns (⌘F, ⌘G, ⌘D, ⌘1–⌘3, ⌘L, ⌘.) are shown here too; the router
|
||||
/// consumes them first, so the menu item fires only when a field or an overlay let the key through.
|
||||
struct HelderCommands: Commands {
|
||||
@FocusedValue(\.workspace) private var workspace
|
||||
@@ -70,6 +70,11 @@ struct HelderCommands: Commands {
|
||||
workspace?.perform(.toggleGit)
|
||||
}
|
||||
.keyboardShortcut("g", modifiers: .command)
|
||||
Button(workspace?.layout.isSchemaViewOpen == true ? "Hide Schema" : "Show Schema") {
|
||||
workspace?.perform(.toggleSchemaView)
|
||||
}
|
||||
.keyboardShortcut("d", modifiers: .command)
|
||||
.disabled(workspace?.schema?.isLaravelApp != true)
|
||||
Button(workspace?.layout.isVisible(.explorer) == false ? "Show Explorer" : "Hide Explorer") {
|
||||
workspace?.perform(.togglePane(.explorer))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user