diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 11:43:07 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2021-04-11 17:07:49 +1000 |
commit | f2007f4d95b7d8b9c454bb00ea087f09a52a4fb4 (patch) | |
tree | 499d74d9622f49622421a13494ce82c63901c47e /pkg/gui/layout.go | |
parent | 8969464b00c91f3aec1a0ff6e9724eacd87c790f (diff) |
support scrolling extras view
Diffstat (limited to 'pkg/gui/layout.go')
-rw-r--r-- | pkg/gui/layout.go | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/pkg/gui/layout.go b/pkg/gui/layout.go index ae9b8ca31..9846e67ef 100644 --- a/pkg/gui/layout.go +++ b/pkg/gui/layout.go @@ -48,7 +48,7 @@ func (gui *Gui) createAllViews() error { {viewPtr: &gui.Views.Suggestions, name: "suggestions"}, {viewPtr: &gui.Views.Confirmation, name: "confirmation"}, {viewPtr: &gui.Views.Limit, name: "limit"}, - {viewPtr: &gui.Views.CmdLog, name: "cmdLog"}, + {viewPtr: &gui.Views.Extras, name: "extras"}, } var err error @@ -135,9 +135,9 @@ func (gui *Gui) createAllViews() error { gui.Views.Information.FgColor = gocui.ColorGreen gui.Views.Information.Frame = false - gui.Views.CmdLog.Title = gui.Tr.CommandLog - gui.Views.CmdLog.FgColor = theme.GocuiDefaultTextColor - gui.Views.CmdLog.Autoscroll = true + gui.Views.Extras.Title = gui.Tr.CommandLog + gui.Views.Extras.FgColor = theme.GocuiDefaultTextColor + gui.Views.Extras.Autoscroll = true if _, err := gui.g.SetCurrentView(gui.defaultSideContext().GetViewName()); err != nil { return err @@ -240,7 +240,7 @@ func (gui *Gui) layout(g *gocui.Gui) error { {viewName: "search", windowName: "search", frame: false}, {viewName: "appStatus", windowName: "appStatus", frame: false}, {viewName: "information", windowName: "information", frame: false}, - {viewName: "cmdLog", windowName: "cmdLog", frame: true}, + {viewName: "extras", windowName: "extras", frame: true}, } for _, arg := range args { @@ -350,7 +350,7 @@ func (gui *Gui) onInitialViewsCreation() error { gui.Views.CommitFiles, gui.Views.Main, gui.Views.Secondary, - gui.Views.CmdLog, + gui.Views.Extras, // bottom line gui.Views.Options, |