mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-07-31 14:24:25 +03:00
fix some things
This commit is contained in:
@ -100,7 +100,6 @@ func (c *OSCommand) OpenFile(filename string) error {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func (c *OSCommand) OpenLink(link string) error {
|
func (c *OSCommand) OpenLink(link string) error {
|
||||||
c.LogCommand(fmt.Sprintf("Opening link '%s'", link), false)
|
|
||||||
commandTemplate := c.UserConfig.OS.OpenLinkCommand
|
commandTemplate := c.UserConfig.OS.OpenLinkCommand
|
||||||
templateValues := map[string]string{
|
templateValues := map[string]string{
|
||||||
"link": c.Quote(link),
|
"link": c.Quote(link),
|
||||||
|
@ -814,12 +814,10 @@ func (gui *Gui) handleOpenCommitInBrowser() error {
|
|||||||
return gui.surfaceError(err)
|
return gui.surfaceError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
gui.logAction(gui.Tr.Actions.OpenCommitInBrowser)
|
||||||
if err := gui.GitCommand.OSCommand.OpenLink(url); err != nil {
|
if err := gui.GitCommand.OSCommand.OpenLink(url); err != nil {
|
||||||
return gui.surfaceError(err)
|
return gui.surfaceError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
gui.logAction(gui.Tr.CreatePullRequest)
|
|
||||||
gui.logCommand(fmt.Sprintf(gui.Tr.OpeningCommitInBrowser, url), false)
|
|
||||||
|
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
@ -61,7 +61,7 @@ func (gui *Gui) createPullRequest(from string, to string) error {
|
|||||||
return gui.surfaceError(err)
|
return gui.surfaceError(err)
|
||||||
}
|
}
|
||||||
|
|
||||||
gui.logAction(gui.Tr.CreatePullRequest)
|
gui.logAction(gui.Tr.Actions.OpenPullRequest)
|
||||||
|
|
||||||
if err := gui.GitCommand.OSCommand.OpenLink(url); err != nil {
|
if err := gui.GitCommand.OSCommand.OpenLink(url); err != nil {
|
||||||
return gui.surfaceError(err)
|
return gui.surfaceError(err)
|
||||||
|
@ -438,7 +438,6 @@ type TranslationSet struct {
|
|||||||
LcDefaultBranch string
|
LcDefaultBranch string
|
||||||
LcSelectBranch string
|
LcSelectBranch string
|
||||||
CreatePullRequest string
|
CreatePullRequest string
|
||||||
OpeningCommitInBrowser string
|
|
||||||
SelectConfigFile string
|
SelectConfigFile string
|
||||||
NoConfigFileFoundErr string
|
NoConfigFileFoundErr string
|
||||||
LcLoadingFileSuggestions string
|
LcLoadingFileSuggestions string
|
||||||
@ -541,6 +540,8 @@ type Actions struct {
|
|||||||
Redo string
|
Redo string
|
||||||
CopyPullRequestURL string
|
CopyPullRequestURL string
|
||||||
OpenMergeTool string
|
OpenMergeTool string
|
||||||
|
OpenCommitInBrowser string
|
||||||
|
OpenPullRequest string
|
||||||
}
|
}
|
||||||
|
|
||||||
const englishIntroPopupMessage = `
|
const englishIntroPopupMessage = `
|
||||||
@ -990,7 +991,6 @@ func EnglishTranslationSet() TranslationSet {
|
|||||||
LcCreatePullRequestOptions: "create pull request options",
|
LcCreatePullRequestOptions: "create pull request options",
|
||||||
LcDefaultBranch: "default branch",
|
LcDefaultBranch: "default branch",
|
||||||
LcSelectBranch: "select branch",
|
LcSelectBranch: "select branch",
|
||||||
OpeningCommitInBrowser: "Opening commit in browser at URL: %s",
|
|
||||||
SelectConfigFile: "Select config file",
|
SelectConfigFile: "Select config file",
|
||||||
NoConfigFileFoundErr: "No config file found",
|
NoConfigFileFoundErr: "No config file found",
|
||||||
LcLoadingFileSuggestions: "loading file suggestions",
|
LcLoadingFileSuggestions: "loading file suggestions",
|
||||||
@ -1091,6 +1091,8 @@ func EnglishTranslationSet() TranslationSet {
|
|||||||
Redo: "Redo",
|
Redo: "Redo",
|
||||||
CopyPullRequestURL: "Copy pull request URL",
|
CopyPullRequestURL: "Copy pull request URL",
|
||||||
OpenMergeTool: "Open merge tool",
|
OpenMergeTool: "Open merge tool",
|
||||||
|
OpenCommitInBrowser: "Open commit in browser",
|
||||||
|
OpenPullRequest: "Open pull request in browser",
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user