diff options
author | David Chen <weichen2000121@gmail.com> | 2019-12-07 09:26:17 -0800 |
---|---|---|
committer | David Chen <weichen2000121@gmail.com> | 2019-12-07 09:26:17 -0800 |
commit | 0d1230a9593f9658bb0d8816e5db3983df873943 (patch) | |
tree | 25fbfead00805c12cabd0548c1c1a06ef2cf1bbb | |
parent | c507e5f562f6753110e5dc582b5cab9bda76b6ee (diff) |
added keybinding for fetchRemote
-rw-r--r-- | docs/Config.md | 1 | ||||
-rw-r--r-- | pkg/config/app_config.go | 1 | ||||
-rw-r--r-- | pkg/gui/keybindings.go | 2 |
3 files changed, 3 insertions, 1 deletions
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"), |