adds schema view and schema generating command
This commit is contained in:
@@ -92,6 +92,8 @@ public final class LayoutStore {
|
||||
public private(set) var visibility = ColumnVisibility.all
|
||||
/// ⌘G: the full-screen Git view over the whole window. Not persisted; the columns stay mounted under it.
|
||||
public private(set) var isGitViewOpen = false
|
||||
/// ⌘D: the full-screen Schema view, in Laravel apps. Not persisted; it and the Git view never show together.
|
||||
public private(set) var isSchemaViewOpen = false
|
||||
/// ⌘L: columns re-fit on resize and focus. A manual splitter drag turns this off.
|
||||
public private(set) var fluid = true
|
||||
/// ⌘.: dotfiles show in the tree and the search.
|
||||
@@ -141,6 +143,7 @@ public final class LayoutStore {
|
||||
activePanel = nil
|
||||
focusZone = .neutral
|
||||
isGitViewOpen = false
|
||||
isSchemaViewOpen = false
|
||||
let saved = persistence?.load(root: root)
|
||||
visibility = saved?.visibility ?? .all
|
||||
fluid = saved?.fluid ?? true
|
||||
@@ -182,6 +185,7 @@ public final class LayoutStore {
|
||||
|
||||
public func openGitView() {
|
||||
isGitViewOpen = true
|
||||
isSchemaViewOpen = false
|
||||
}
|
||||
|
||||
public func closeGitView() {
|
||||
@@ -189,7 +193,16 @@ public final class LayoutStore {
|
||||
}
|
||||
|
||||
public func toggleGitView() {
|
||||
isGitViewOpen.toggle()
|
||||
isGitViewOpen ? closeGitView() : openGitView()
|
||||
}
|
||||
|
||||
public func openSchemaView() {
|
||||
isSchemaViewOpen = true
|
||||
isGitViewOpen = false
|
||||
}
|
||||
|
||||
public func closeSchemaView() {
|
||||
isSchemaViewOpen = false
|
||||
}
|
||||
|
||||
public func toggleFluid() {
|
||||
|
||||
Reference in New Issue
Block a user