mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-05-15 22:26:40 +02:00
Add prompt to the remote branch checkout menu
This commit is contained in:
parent
7e92dbfd3d
commit
ddd6323aa5
@ -130,6 +130,7 @@ func (self *RefsHelper) CheckoutRemoteBranch(fullBranchName string, localBranchN
|
|||||||
Title: utils.ResolvePlaceholderString(self.c.Tr.RemoteBranchCheckoutTitle, map[string]string{
|
Title: utils.ResolvePlaceholderString(self.c.Tr.RemoteBranchCheckoutTitle, map[string]string{
|
||||||
"branchName": fullBranchName,
|
"branchName": fullBranchName,
|
||||||
}),
|
}),
|
||||||
|
Prompt: self.c.Tr.RemoteBranchCheckoutPrompt,
|
||||||
Items: []*types.MenuItem{
|
Items: []*types.MenuItem{
|
||||||
{
|
{
|
||||||
Label: self.c.Tr.CheckoutTypeNewBranch,
|
Label: self.c.Tr.CheckoutTypeNewBranch,
|
||||||
|
@ -113,6 +113,7 @@ type TranslationSet struct {
|
|||||||
CheckoutByName string
|
CheckoutByName string
|
||||||
CheckoutByNameTooltip string
|
CheckoutByNameTooltip string
|
||||||
RemoteBranchCheckoutTitle string
|
RemoteBranchCheckoutTitle string
|
||||||
|
RemoteBranchCheckoutPrompt string
|
||||||
CheckoutTypeNewBranch string
|
CheckoutTypeNewBranch string
|
||||||
CheckoutTypeNewBranchTooltip string
|
CheckoutTypeNewBranchTooltip string
|
||||||
CheckoutTypeDetachedHead string
|
CheckoutTypeDetachedHead string
|
||||||
@ -1079,6 +1080,7 @@ func EnglishTranslationSet() TranslationSet {
|
|||||||
CheckoutByName: "Checkout by name",
|
CheckoutByName: "Checkout by name",
|
||||||
CheckoutByNameTooltip: "Checkout by name. In the input box you can enter '-' to switch to the last branch.",
|
CheckoutByNameTooltip: "Checkout by name. In the input box you can enter '-' to switch to the last branch.",
|
||||||
RemoteBranchCheckoutTitle: "Checkout {{.branchName}}",
|
RemoteBranchCheckoutTitle: "Checkout {{.branchName}}",
|
||||||
|
RemoteBranchCheckoutPrompt: "How would you like to check out this branch?",
|
||||||
CheckoutTypeNewBranch: "New local branch",
|
CheckoutTypeNewBranch: "New local branch",
|
||||||
CheckoutTypeNewBranchTooltip: "Checkout the remote branch as a local branch, tracking the remote branch.",
|
CheckoutTypeNewBranchTooltip: "Checkout the remote branch as a local branch, tracking the remote branch.",
|
||||||
CheckoutTypeDetachedHead: "Detached head",
|
CheckoutTypeDetachedHead: "Detached head",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user