diff options
author | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-04 19:47:25 +1100 |
---|---|---|
committer | Jesse Duffield <jessedduffield@gmail.com> | 2019-11-05 19:22:01 +1100 |
commit | d5e443e8e3609fe38586aed942a3dae3343dbe47 (patch) | |
tree | 6d7465b9abd8df3ae903e6d95898054ac3a6d8b4 /pkg/gui/keybindings.go | |
parent | a3c84296bf2fbc8b132d5b2285eedba09813fbee (diff) |
Support building and moving patches
WIP
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 77d295d33..7718535ed 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -143,6 +143,11 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Modifier: gocui.ModNone, Handler: gui.handleCreateOptionsMenu, }, { + ViewName: "", + Key: gocui.KeyCtrlP, + Modifier: gocui.ModNone, + Handler: gui.handleCreatePatchOptionsMenu, + }, { ViewName: "status", Key: 'e', Modifier: gocui.ModNone, @@ -523,6 +528,20 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { Handler: gui.handleOpenOldCommitFile, Description: gui.Tr.SLocalize("openFile"), }, + { + ViewName: "commitFiles", + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleToggleFileForPatch, + Description: gui.Tr.SLocalize("toggleAddToPatch"), + }, + { + ViewName: "commitFiles", + Key: gocui.KeyEnter, + Modifier: gocui.ModNone, + Handler: gui.handleEnterCommitFile, + Description: gui.Tr.SLocalize("enterFile"), + }, } for _, viewName := range []string{"status", "branches", "files", "commits", "commitFiles", "stash", "menu"} { |