From 29431ddc8e38cf15c83f522f2e55f7f0b46a9363 Mon Sep 17 00:00:00 2001 From: Jesse Duffield Date: Sat, 18 Aug 2018 15:30:56 +1000 Subject: create dashboard --- pkg/gui/status_panel.go | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) (limited to 'pkg') diff --git a/pkg/gui/status_panel.go b/pkg/gui/status_panel.go index 544f5e880..88134096e 100644 --- a/pkg/gui/status_panel.go +++ b/pkg/gui/status_panel.go @@ -49,6 +49,18 @@ func (gui *Gui) renderStatusOptions(g *gocui.Gui) error { } func (gui *Gui) handleStatusSelect(g *gocui.Gui, v *gocui.View) error { + dashboardString := fmt.Sprintf( + "%s\n\n%s\n\n%s\n\n%s\n\n%s", + lazygitTitle(), + "Keybindings: https://github.com/jesseduffield/lazygit/blob/master/docs/Keybindings.md", + "Config Options: https://github.com/jesseduffield/lazygit/blob/master/docs/Config.md", + "Tutorial: https://www.youtube.com/watch?v=VDXvbHZYeKY", + "Raise an Issue: https://github.com/jesseduffield/lazygit/issues", + ) + + if err := gui.renderString(g, "main", dashboardString); err != nil { + return err + } return gui.renderStatusOptions(g) } @@ -61,3 +73,15 @@ func (gui *Gui) handleEditConfig(g *gocui.Gui, v *gocui.View) error { filename := gui.Config.GetUserConfig().ConfigFileUsed() return gui.genericFileOpen(g, v, filename, gui.OSCommand.EditFile) } + +func lazygitTitle() string { + return ` + _ _ _ + | | (_) | + | | __ _ _____ _ __ _ _| |_ + | |/ _` + "`" + ` |_ / | | |/ _` + "`" + ` | | __| + | | (_| |/ /| |_| | (_| | | |_ + |_|\__,_/___|\__, |\__, |_|\__| + __/ | __/ | + |___/ |___/ ` +} -- cgit v1.2.3