1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-08-07 22:02:56 +03:00

WIP constants for context keys

This commit is contained in:
Jesse Duffield
2020-08-20 09:00:55 +10:00
parent 146722beb8
commit 433d54fcec
4 changed files with 77 additions and 55 deletions

View File

@@ -46,12 +46,12 @@ func (gui *Gui) currentDiffTerminals() []string {
// not supporting files for now
case "commitFiles":
// not supporting commit files for now
case "branch-commits":
case "branchCommits":
item := gui.getSelectedCommit()
if item != nil {
return []string{item.RefName()}
}
case "reflog-commits":
case "reflogCommits":
item := gui.getSelectedReflogCommit()
if item != nil {
return []string{item.RefName()}
@@ -62,7 +62,7 @@ func (gui *Gui) currentDiffTerminals() []string {
return []string{item.RefName()}
}
case "local-branches":
case "localBranches":
branch := gui.getSelectedBranch()
if branch != nil {
names := []string{branch.RefName()}
@@ -77,7 +77,7 @@ func (gui *Gui) currentDiffTerminals() []string {
if item != nil {
return []string{item.RefName()}
}
case "remote-branches":
case "remoteBranches":
item := gui.getSelectedRemoteBranch()
if item != nil {
return []string{item.RefName()}