diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-20 09:00:55 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | 433d54fcec8bd8ec7f978ec30574d2e1273b7817 (patch) | |
tree | 41011816b4b801381ced3bdff64c2291c980bf98 /pkg/gui/list_context.go | |
parent | 146722beb875d6f44a9d05b289e1cf92e8518932 (diff) |
WIP constants for context keys
Diffstat (limited to 'pkg/gui/list_context.go')
-rw-r--r-- | pkg/gui/list_context.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/pkg/gui/list_context.go b/pkg/gui/list_context.go index 12644cb49..de463a8d3 100644 --- a/pkg/gui/list_context.go +++ b/pkg/gui/list_context.go @@ -248,7 +248,7 @@ func (gui *Gui) filesListContext() *ListContext { func (gui *Gui) branchesListContext() *ListContext { return &ListContext{ ViewName: "branches", - ContextKey: "local-branches", + ContextKey: "localBranches", GetItemsLength: func() int { return len(gui.State.Branches) }, GetPanelState: func() IListPanelState { return gui.State.Panels.Branches }, OnFocus: gui.handleBranchSelect, @@ -281,7 +281,7 @@ func (gui *Gui) remotesListContext() *ListContext { func (gui *Gui) remoteBranchesListContext() *ListContext { return &ListContext{ ViewName: "branches", - ContextKey: "remote-branches", + ContextKey: "remoteBranches", GetItemsLength: func() int { return len(gui.State.RemoteBranches) }, GetPanelState: func() IListPanelState { return gui.State.Panels.RemoteBranches }, OnFocus: gui.handleRemoteBranchSelect, @@ -313,7 +313,7 @@ func (gui *Gui) tagsListContext() *ListContext { func (gui *Gui) branchCommitsListContext() *ListContext { return &ListContext{ ViewName: "commits", - ContextKey: "branch-commits", + ContextKey: "branchCommits", GetItemsLength: func() int { return len(gui.State.Commits) }, GetPanelState: func() IListPanelState { return gui.State.Panels.Commits }, OnFocus: gui.handleCommitSelect, @@ -330,7 +330,7 @@ func (gui *Gui) branchCommitsListContext() *ListContext { func (gui *Gui) reflogCommitsListContext() *ListContext { return &ListContext{ ViewName: "commits", - ContextKey: "reflog-commits", + ContextKey: "reflogCommits", GetItemsLength: func() int { return len(gui.State.FilteredReflogCommits) }, GetPanelState: func() IListPanelState { return gui.State.Panels.ReflogCommits }, OnFocus: gui.handleReflogCommitSelect, |