1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-30 03:23:08 +03: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

View File

@ -113,6 +113,9 @@ type Gui struct {
// Log of the commands that get run, to be displayed to the user.
CmdLog []string
OnRunCommand func(entry oscommands.CmdLogEntry)
// the extras window contains things like the command log
ShowExtrasWindow bool
}
type listPanelState struct {
@ -338,7 +341,6 @@ type guiState struct {
IsRefreshingFiles bool
Searching searchingState
ScreenMode WindowMaximisation
SideView *gocui.View
Ptmx *os.File
PrevMainWidth int
PrevMainHeight int
@ -428,8 +430,7 @@ func (gui *Gui) resetState(filterPath string, reuseState bool) {
ConflictsMutex: sync.Mutex{},
},
},
SideView: nil,
Ptmx: nil,
Ptmx: nil,
Modes: Modes{
Filtering: filtering.NewFiltering(filterPath),
CherryPicking: CherryPicking{