From bf8514f5e2fa5182fadbee08f1348b0e5021b3aa Mon Sep 17 00:00:00 2001 From: Dawid Dziurla Date: Mon, 3 Sep 2018 18:44:56 +0200 Subject: [PATCH] helperize spaces --- pkg/gui/keybindings.go | 20 ++++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 9d5dc27ff..29caa9a26 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -102,10 +102,12 @@ func (gui *Gui) GetKeybindings() []Binding { Handler: gui.handleCommitEditorPress, Description: gui.Tr.SLocalize("CommitChangesWithEditor"), }, { - ViewName: "files", - Key: gocui.KeySpace, - Modifier: gocui.ModNone, - Handler: gui.handleFilePress, + ViewName: "files", + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleFilePress, + KeyReadable: "space", + Description: gui.Tr.SLocalize("toggleStaged"), }, { ViewName: "files", Key: 'd', @@ -233,10 +235,12 @@ func (gui *Gui) GetKeybindings() []Binding { Modifier: gocui.ModNone, Handler: gui.handlePopFileSnapshot, }, { - ViewName: "branches", - Key: gocui.KeySpace, - Modifier: gocui.ModNone, - Handler: gui.handleBranchPress, + ViewName: "branches", + Key: gocui.KeySpace, + Modifier: gocui.ModNone, + Handler: gui.handleBranchPress, + KeyReadable: "space", + Description: gui.Tr.SLocalize("checkout"), }, { ViewName: "branches", Key: 'c',