adds schema view and schema generating command

This commit is contained in:
2026-11-03 09:35:41 +01:00
parent cc41decccb
commit 600d4874d2
62 changed files with 4416 additions and 105 deletions
+6 -1
View File
@@ -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))
}