From 0d1230a9593f9658bb0d8816e5db3983df873943 Mon Sep 17 00:00:00 2001 From: David Chen Date: Sat, 7 Dec 2019 09:26:17 -0800 Subject: [PATCH] added keybinding for fetchRemote --- docs/Config.md | 1 + pkg/config/app_config.go | 1 + pkg/gui/keybindings.go | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/docs/Config.md b/docs/Config.md index a9e8234e6..22f63229c 100644 --- a/docs/Config.md +++ b/docs/Config.md @@ -93,6 +93,7 @@ Default path for the config file: `~/.config/jesseduffield/lazygit/config.yml` fastForward: 'f' # fast-forward this branch from its upstream pushTag: 'P' setUpstream: 'u' # set as upstream of checked-out branch + fetchRemote: 'f' commits: squashDown: 's' renameCommit: 'r' diff --git a/pkg/config/app_config.go b/pkg/config/app_config.go index 9c6e6467c..338244b91 100644 --- a/pkg/config/app_config.go +++ b/pkg/config/app_config.go @@ -326,6 +326,7 @@ keybinding: fastForward: 'f' pushTag: 'P' setUpstream: 'u' + fetchRemote: 'f' commits: squashDown: 's' renameCommit: 'r' diff --git a/pkg/gui/keybindings.go b/pkg/gui/keybindings.go index 0d9607574..6e5d7fb93 100644 --- a/pkg/gui/keybindings.go +++ b/pkg/gui/keybindings.go @@ -740,7 +740,7 @@ func (gui *Gui) GetInitialKeybindings() []*Binding { { ViewName: "branches", Contexts: []string{"remotes"}, - Key: 'f', + Key: gui.getKey("branches.fetchRemote"), Modifier: gocui.ModNone, Handler: gui.handleFetchRemote, Description: gui.Tr.SLocalize("fetchRemote"),