1
0
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:
Jesse Duffield
2021-04-11 12:12:54 +10:00
parent e3a14d546a
commit 4f03d7733a
7 changed files with 40 additions and 9 deletions

15
pkg/gui/extras_panel.go Normal file
View 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})
}