diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-21 09:12:45 +1000 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2020-08-23 14:29:18 +1000 |
commit | ddf25e14afe5ddfc2527149c54ea55ea2e83610a (patch) | |
tree | a75ce97a36ce9ec3e4215c20e2a26e82fea81304 /pkg/gui/keybindings.go | |
parent | 48f1adad49c01cf7f093e8f9921582690bef55a7 (diff) |
allowing commit files to be viewed in reflog as well
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 15 |
1 files changed, 8 insertions, 7 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index e5df56c42..3ce94c631 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -765,7 +765,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { ViewName: "commits", Contexts: []string{BRANCH_COMMITS_CONTEXT_KEY}, Key: gui.getKey("universal.goInto"), - Handler: gui.wrappedHandler(gui.handleSwitchToCommitFilesPanel), + Handler: gui.wrappedHandler(gui.handleViewCommitFiles), Description: gui.Tr.SLocalize("viewCommitFiles"), }, { @@ -800,6 +800,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { { ViewName: "commits", Contexts: []string{REFLOG_COMMITS_CONTEXT_KEY}, + Key: gui.getKey("universal.goInto"), + Handler: gui.wrappedHandler(gui.handleViewReflogCommitFiles), + Description: gui.Tr.SLocalize("viewCommitFiles"), + }, + { + ViewName: "commits", + Contexts: []string{REFLOG_COMMITS_CONTEXT_KEY}, Key: gui.getKey("universal.select"), Handler: gui.handleCheckoutReflogCommit, Description: gui.Tr.SLocalize("checkoutCommit"), @@ -867,12 +874,6 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { }, { ViewName: "commitFiles", - Key: gui.getKey("universal.return"), - Handler: gui.handleSwitchToCommitsPanel, - Description: gui.Tr.SLocalize("goBack"), - }, - { - ViewName: "commitFiles", Key: gui.getKey("commitFiles.checkoutCommitFile"), Handler: gui.handleCheckoutCommitFile, Description: gui.Tr.SLocalize("checkoutCommitFile"), |