Improves helder
This commit is contained in:
@@ -66,10 +66,19 @@ struct HelderCommands: Commands {
|
||||
.keyboardShortcut("r", modifiers: .command)
|
||||
.disabled(workspace?.root == nil)
|
||||
Divider()
|
||||
Button(workspace?.layout.gitVisible == false ? "Show Source Control" : "Hide Source Control") {
|
||||
Button(workspace?.layout.isVisible(.sourceControl) == false ? "Show Source Control" : "Hide Source Control") {
|
||||
workspace?.perform(.toggleGit)
|
||||
}
|
||||
.keyboardShortcut("g", modifiers: .command)
|
||||
Button(workspace?.layout.isVisible(.explorer) == false ? "Show Explorer" : "Hide Explorer") {
|
||||
workspace?.perform(.togglePane(.explorer))
|
||||
}
|
||||
Button(workspace?.layout.isVisible(.editor) == false ? "Show File" : "Hide File") {
|
||||
workspace?.perform(.togglePane(.editor))
|
||||
}
|
||||
Button(workspace?.layout.isVisible(.terminal) == false ? "Show Claude" : "Hide Claude") {
|
||||
workspace?.perform(.togglePane(.terminal))
|
||||
}
|
||||
Button(workspace?.layout.fluid == false ? "Fluid Column Widths" : "Lock Column Widths") {
|
||||
workspace?.perform(.toggleAutoFit)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user