summaryrefslogtreecommitdiffstats
path: root/pkg/gui/context.go
diff options
context:
space:
mode:
authorJesse Duffield <jessedduffield@gmail.com>2022-05-07 15:42:36 +1000
committerJesse Duffield <jessedduffield@gmail.com>2022-05-07 16:02:04 +1000
commit3bf0c9ef441f9343172ed71b5e5947c69e66ac9a (patch)
treeba2aace32d469336eed58c8a988ef95c2061240e /pkg/gui/context.go
parentcd5b041b0f8b95b473849d222b71aa2fe3b24899 (diff)
more documentation
Diffstat (limited to 'pkg/gui/context.go')
-rw-r--r--pkg/gui/context.go5
1 files changed, 5 insertions, 0 deletions
diff --git a/pkg/gui/context.go b/pkg/gui/context.go
index 19db274d8..b83aa71c9 100644
--- a/pkg/gui/context.go
+++ b/pkg/gui/context.go
@@ -13,6 +13,11 @@ import (
"github.com/jesseduffield/lazygit/pkg/gui/types"
)
+// This file is for the management of contexts. There is a context stack such that
+// for example you might start off in the commits context and then open a menu, putting
+// you in the menu context. When contexts are activated/deactivated certain things need
+// to happen like showing/hiding views and rendering content.
+
func (gui *Gui) popupViewNames() []string {
popups := slices.Filter(gui.State.Contexts.Flatten(), func(c types.Context) bool {
return c.GetKind() == types.PERSISTENT_POPUP || c.GetKind() == types.TEMPORARY_POPUP