summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2018-08-18 15:30:56 +1000
committerJesse Duffield <jessedduffield@gmail.com>2018-08-18 15:30:56 +1000
commit29431ddc8e38cf15c83f522f2e55f7f0b46a9363 (patch)
treee6bdaabb516c0cc623357c44b4b28a7466dd61b4
parenta1a828a781e805a8964c35305edf0365d4aa7068 (diff)
create dashboard
-rw-r--r--pkg/gui/status_panel.go24
1 files changed, 24 insertions, 0 deletions
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 `
+ _ _ _
+ | | (_) |
+ | | __ _ _____ _ __ _ _| |_
+ | |/ _` + "`" + ` |_ / | | |/ _` + "`" + ` | | __|
+ | | (_| |/ /| |_| | (_| | | |_
+ |_|\__,_/___|\__, |\__, |_|\__|
+ __/ | __/ |
+ |___/ |___/ `
+}