1
0
mirror of https://github.com/jesseduffield/lazygit.git synced 2025-05-19 22:33:16 +02:00

move fetch keybinding to files view to make way for branch-specific fetched

This commit is contained in:
Jesse Duffield 2018-12-12 22:33:42 +11:00
parent e20d8366e1
commit c71bcc64ed
2 changed files with 7 additions and 7 deletions

View File

@ -219,6 +219,12 @@ func (gui *Gui) GetKeybindings() []*Binding {
Handler: gui.handleSwitchToStagingPanel, Handler: gui.handleSwitchToStagingPanel,
Description: gui.Tr.SLocalize("StageLines"), Description: gui.Tr.SLocalize("StageLines"),
KeyReadable: "enter", KeyReadable: "enter",
}, {
ViewName: "files",
Key: 'f',
Modifier: gocui.ModNone,
Handler: gui.handleGitFetch,
Description: gui.Tr.SLocalize("fetch"),
}, { }, {
ViewName: "main", ViewName: "main",
Key: gocui.KeyEsc, Key: gocui.KeyEsc,
@ -304,12 +310,6 @@ func (gui *Gui) GetKeybindings() []*Binding {
Modifier: gocui.ModNone, Modifier: gocui.ModNone,
Handler: gui.handleForceCheckout, Handler: gui.handleForceCheckout,
Description: gui.Tr.SLocalize("forceCheckout"), Description: gui.Tr.SLocalize("forceCheckout"),
}, {
ViewName: "branches",
Key: 'f',
Modifier: gocui.ModNone,
Handler: gui.handleGitFetch,
Description: gui.Tr.SLocalize("fetch"),
}, { }, {
ViewName: "branches", ViewName: "branches",
Key: 'n', Key: 'n',

View File

@ -431,7 +431,7 @@ func addEnglish(i18nObject *i18n.Bundle) error {
Other: `No automatic git fetch`, Other: `No automatic git fetch`,
}, &i18n.Message{ }, &i18n.Message{
ID: "NoAutomaticGitFetchBody", ID: "NoAutomaticGitFetchBody",
Other: `Lazygit can't use "git fetch" in a private repo use f in the branches panel to run "git fetch" manually`, Other: `Lazygit can't use "git fetch" in a private repo; use 'f' in the files panel to run "git fetch" manually`,
}, &i18n.Message{ }, &i18n.Message{
ID: "StageLines", ID: "StageLines",
Other: `stage individual hunks/lines`, Other: `stage individual hunks/lines`,