diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-16 13:58:29 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 7f89113245307be8a1642105014e9ce51a47210f (patch) | |
tree | 0b1237c4bdd4a465bedb7cc49c8372d0bfc46ea5 /pkg/gui/gui.go | |
parent | 0ea0c486310558e26af7ad6e4fcf17f57c2b62e3 (diff) |
WIP
Diffstat (limited to 'pkg/gui/gui.go')
-rw-r--r-- | pkg/gui/gui.go | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/pkg/gui/gui.go b/pkg/gui/gui.go index 5530032d9..0ddf4b2ce 100644 --- a/pkg/gui/gui.go +++ b/pkg/gui/gui.go @@ -97,6 +97,7 @@ type Gui struct { // when lazygit is opened outside a git directory we want to open to the most // recent repo with the recent repos popup showing showRecentRepos bool + Contexts ContextTree } // for now the staging panel state, unlike the other panel states, is going to be @@ -237,7 +238,15 @@ type guiState struct { FilterPath string // the filename that gets passed to git log Diff DiffState - Contexts ContextTree + ContextStack []Context + ViewContextMap map[string]Context + + // WindowViewNameMap is a mapping of windows to the current view of that window. + // Currently the only case where the distinction between a window and a view + // matters is with the commits view and the commitFiles view which both appear + // in the same place (and thus constitute the 'commits' window). + // If a window contains only one view, it shares the same name as the view. + WindowViewNameMap map[string]string } func (gui *Gui) resetState() { |