diff options
Diffstat (limited to 'pkg/gui/keybindings.go')
-rw-r--r-- | pkg/gui/keybindings.go | 26 |
1 files changed, 22 insertions, 4 deletions
diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 24fd5a854..c8adac11c 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -678,14 +678,32 @@ func (gui *Gui) GetContextMap() map[string]map[string][]*Binding { ViewName: "main", Key: gocui.KeySpace, Modifier: gocui.ModNone, - Handler: gui.handleStageLine, - Description: gui.Tr.SLocalize("StageLine"), + Handler: gui.handleStageSelection, + Description: gui.Tr.SLocalize("StageSelection"), + }, { + ViewName: "main", + Key: 'd', + Modifier: gocui.ModNone, + Handler: gui.handleResetSelection, + Description: gui.Tr.SLocalize("ResetSelection"), + }, { + ViewName: "main", + Key: 'c', + Modifier: gocui.ModNone, + Handler: gui.handleToggleSelectRange, + Description: gui.Tr.SLocalize("ToggleDragSelect"), }, { ViewName: "main", Key: 'a', Modifier: gocui.ModNone, - Handler: gui.handleStageHunk, - Description: gui.Tr.SLocalize("StageHunk"), + Handler: gui.handleToggleSelectHunk, + Description: gui.Tr.SLocalize("ToggleSelectHunk"), + }, { + ViewName: "main", + Key: gocui.KeyTab, + Modifier: gocui.ModNone, + Handler: gui.handleTogglePanel, + Description: gui.Tr.SLocalize("TogglePanel"), }, }, "merging": { |