mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-12-01 22:52:01 +02:00
allow showing, hiding, and scrolling the extras panel
This commit is contained in:
15
pkg/gui/extras_panel.go
Normal file
15
pkg/gui/extras_panel.go
Normal file
@@ -0,0 +1,15 @@
|
||||
package gui
|
||||
|
||||
func (gui *Gui) handleCreateExtrasMenuPanel() error {
|
||||
menuItems := []*menuItem{
|
||||
{
|
||||
displayString: "Toggle show/hide command log",
|
||||
onPress: func() error {
|
||||
gui.ShowExtrasWindow = !gui.ShowExtrasWindow
|
||||
return nil
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
return gui.createMenu(gui.Tr.DiffingMenuTitle, menuItems, createMenuOptions{showCancel: true})
|
||||
}
|
||||
Reference in New Issue
Block a user