1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-07-31 14:24:25 +03:00

support adding/removing remotes

This commit is contained in:
Jesse Duffield
2019-11-17 12:02:39 +11:00
parent 1f3e1720a3
commit 6b7aaeca45
8 changed files with 139 additions and 27 deletions

View File

@ -1041,6 +1041,22 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
Modifier: gocui.ModNone,
Handler: gui.handleRemoteEnter,
},
{
ViewName: "branches",
Contexts: []string{"remotes"},
Key: 'n',
Modifier: gocui.ModNone,
Handler: gui.handleAddRemote,
Description: gui.Tr.SLocalize("addNewRemote"),
},
{
ViewName: "branches",
Contexts: []string{"remotes"},
Key: 'd',
Modifier: gocui.ModNone,
Handler: gui.handleRemoveRemote,
Description: gui.Tr.SLocalize("removeRemote"),
},
{
ViewName: "commits",
Key: gocui.MouseLeft,