mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-11-27 22:38:09 +02:00
@@ -4,6 +4,7 @@
|
|||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<kbd>m</kbd>: view merge/rebase options
|
<kbd>m</kbd>: view merge/rebase options
|
||||||
|
<kbd>ctrl+p</kbd>: view custom patch options
|
||||||
<kbd>P</kbd>: push
|
<kbd>P</kbd>: push
|
||||||
<kbd>p</kbd>: pull
|
<kbd>p</kbd>: pull
|
||||||
<kbd>R</kbd>: refresh
|
<kbd>R</kbd>: refresh
|
||||||
|
|||||||
@@ -36,6 +36,9 @@ func (b *Binding) GetKey() string {
|
|||||||
if b.Key.(gocui.Key) == gocui.KeyCtrlK {
|
if b.Key.(gocui.Key) == gocui.KeyCtrlK {
|
||||||
return "ctrl+k"
|
return "ctrl+k"
|
||||||
}
|
}
|
||||||
|
if b.Key.(gocui.Key) == gocui.KeyCtrlP {
|
||||||
|
return "ctrl+p"
|
||||||
|
}
|
||||||
key = int(b.Key.(gocui.Key))
|
key = int(b.Key.(gocui.Key))
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -138,6 +141,13 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Handler: gui.handleCreateRebaseOptionsMenu,
|
Handler: gui.handleCreateRebaseOptionsMenu,
|
||||||
Description: gui.Tr.SLocalize("ViewMergeRebaseOptions"),
|
Description: gui.Tr.SLocalize("ViewMergeRebaseOptions"),
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
ViewName: "",
|
||||||
|
Key: gocui.KeyCtrlP,
|
||||||
|
Modifier: gocui.ModNone,
|
||||||
|
Handler: gui.handleCreatePatchOptionsMenu,
|
||||||
|
Description: gui.Tr.SLocalize("ViewPatchOptions"),
|
||||||
|
},
|
||||||
{
|
{
|
||||||
ViewName: "",
|
ViewName: "",
|
||||||
Key: 'P',
|
Key: 'P',
|
||||||
@@ -177,12 +187,6 @@ func (gui *Gui) GetInitialKeybindings() []*Binding {
|
|||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.handleCreateOptionsMenu,
|
Handler: gui.handleCreateOptionsMenu,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
ViewName: "",
|
|
||||||
Key: gocui.KeyCtrlP,
|
|
||||||
Modifier: gocui.ModNone,
|
|
||||||
Handler: gui.handleCreatePatchOptionsMenu,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
ViewName: "status",
|
ViewName: "status",
|
||||||
Key: 'e',
|
Key: 'e',
|
||||||
|
|||||||
@@ -822,6 +822,9 @@ func addEnglish(i18nObject *i18n.Bundle) error {
|
|||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "toggleAddToPatch",
|
ID: "toggleAddToPatch",
|
||||||
Other: "toggle file included in patch",
|
Other: "toggle file included in patch",
|
||||||
|
}, &i18n.Message{
|
||||||
|
ID: "ViewPatchOptions",
|
||||||
|
Other: "view custom patch options",
|
||||||
}, &i18n.Message{
|
}, &i18n.Message{
|
||||||
ID: "PatchOptionsTitle",
|
ID: "PatchOptionsTitle",
|
||||||
Other: "Patch Options",
|
Other: "Patch Options",
|
||||||
|
|||||||
Reference in New Issue
Block a user