diff options
author | skanehira <sho19921005@gmail.com> | 2019-03-23 22:46:08 +0900 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-04-06 13:02:20 +1100 |
commit | c350cdba4337fa8961e5fbe16e70d73fae7ccc20 (patch) | |
tree | d0445a56f0d964f6d50f200042851ec8b3c02e7f /pkg/gui/keybindings.go | |
parent | 1a933eaa731e910cc22e361b93cba8fd5603016f (diff) |
add feature of display diff between specific commits #397
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 518575550..28a60d473 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -389,6 +389,12 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleSwitchToCommitFilesPanel, Description: gui.Tr.SLocalize("viewCommitFiles"), }, { + ViewName: "commits", + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleToggleDiffCommit, + Description: gui.Tr.SLocalize("CommitsDiff"), + }, { ViewName: "stash", Key: gocui.KeySpace, Modifier: gocui.ModNone, |