@@ -25,38 +25,22 @@ func NewContextTree(c *ContextCommon) *ContextTree {
25
25
Focusable : true ,
26
26
}),
27
27
),
28
- Files : NewWorkingTreeContext (c ),
29
- Submodules : NewSubmodulesContext (c ),
30
- Menu : NewMenuContext (c ),
31
- Remotes : NewRemotesContext (c ),
32
- Worktrees : NewWorktreesContext (c ),
33
- RemoteBranches : NewRemoteBranchesContext (c ),
34
- LocalCommits : NewLocalCommitsContext (c ),
35
- CommitFiles : commitFilesContext ,
36
- ReflogCommits : NewReflogCommitsContext (c ),
37
- SubCommits : NewSubCommitsContext (c ),
38
- Branches : NewBranchesContext (c ),
39
- Tags : NewTagsContext (c ),
40
- Stash : NewStashContext (c ),
41
- Suggestions : NewSuggestionsContext (c ),
42
- Normal : NewSimpleContext (
43
- NewBaseContext (NewBaseContextOpts {
44
- Kind : types .MAIN_CONTEXT ,
45
- View : c .Views ().Main ,
46
- WindowName : "main" ,
47
- Key : NORMAL_MAIN_CONTEXT_KEY ,
48
- Focusable : false ,
49
- }),
50
- ),
51
- NormalSecondary : NewSimpleContext (
52
- NewBaseContext (NewBaseContextOpts {
53
- Kind : types .MAIN_CONTEXT ,
54
- View : c .Views ().Secondary ,
55
- WindowName : "secondary" ,
56
- Key : NORMAL_SECONDARY_CONTEXT_KEY ,
57
- Focusable : false ,
58
- }),
59
- ),
28
+ Files : NewWorkingTreeContext (c ),
29
+ Submodules : NewSubmodulesContext (c ),
30
+ Menu : NewMenuContext (c ),
31
+ Remotes : NewRemotesContext (c ),
32
+ Worktrees : NewWorktreesContext (c ),
33
+ RemoteBranches : NewRemoteBranchesContext (c ),
34
+ LocalCommits : NewLocalCommitsContext (c ),
35
+ CommitFiles : commitFilesContext ,
36
+ ReflogCommits : NewReflogCommitsContext (c ),
37
+ SubCommits : NewSubCommitsContext (c ),
38
+ Branches : NewBranchesContext (c ),
39
+ Tags : NewTagsContext (c ),
40
+ Stash : NewStashContext (c ),
41
+ Suggestions : NewSuggestionsContext (c ),
42
+ Normal : NewMainContext (c .Views ().Main , "main" , NORMAL_MAIN_CONTEXT_KEY ),
43
+ NormalSecondary : NewMainContext (c .Views ().Secondary , "secondary" , NORMAL_SECONDARY_CONTEXT_KEY ),
60
44
Staging : NewPatchExplorerContext (
61
45
c .Views ().Staging ,
62
46
"main" ,
0 commit comments