mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-06-13 00:07:59 +02:00
Add alternatives for scroll actions to context map
This commit is contained in:
parent
97f060d38d
commit
e38d9d5f22
@ -98,8 +98,8 @@
|
|||||||
## Main (Normal)
|
## Main (Normal)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<kbd>PgDn</kbd>: scroll down
|
<kbd>PgDn</kbd>: scroll down (fn+up)
|
||||||
<kbd>PgUp</kbd>: scroll up
|
<kbd>PgUp</kbd>: scroll up (fn+down)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
## Main (Staging)
|
## Main (Staging)
|
||||||
|
@ -98,8 +98,8 @@
|
|||||||
## Hoofd (Normaal)
|
## Hoofd (Normaal)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<kbd>PgDn</kbd>: scroll omlaag
|
<kbd>PgDn</kbd>: scroll omlaag (fn+up)
|
||||||
<kbd>PgUp</kbd>: scroll omhoog
|
<kbd>PgUp</kbd>: scroll omhoog (fn+down)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
## Hoofd (Stage Lines/Hunks)
|
## Hoofd (Stage Lines/Hunks)
|
||||||
|
@ -98,8 +98,8 @@
|
|||||||
## Main (Normal)
|
## Main (Normal)
|
||||||
|
|
||||||
<pre>
|
<pre>
|
||||||
<kbd>PgDn</kbd>: scroll down
|
<kbd>PgDn</kbd>: scroll down (fn+up)
|
||||||
<kbd>PgUp</kbd>: scroll up
|
<kbd>PgUp</kbd>: scroll up (fn+down)
|
||||||
</pre>
|
</pre>
|
||||||
|
|
||||||
## Main (Zatwierdzanie)
|
## Main (Zatwierdzanie)
|
||||||
|
@ -576,12 +576,14 @@ func (gui *Gui) GetContextMap() map[string]map[string][]*Binding {
|
|||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.scrollDownMain,
|
Handler: gui.scrollDownMain,
|
||||||
Description: gui.Tr.SLocalize("ScrollDown"),
|
Description: gui.Tr.SLocalize("ScrollDown"),
|
||||||
|
Alternative: "fn+up",
|
||||||
}, {
|
}, {
|
||||||
ViewName: "main",
|
ViewName: "main",
|
||||||
Key: gocui.MouseWheelUp,
|
Key: gocui.MouseWheelUp,
|
||||||
Modifier: gocui.ModNone,
|
Modifier: gocui.ModNone,
|
||||||
Handler: gui.scrollUpMain,
|
Handler: gui.scrollUpMain,
|
||||||
Description: gui.Tr.SLocalize("ScrollUp"),
|
Description: gui.Tr.SLocalize("ScrollUp"),
|
||||||
|
Alternative: "fn+down",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
"staging": {
|
"staging": {
|
||||||
|
@ -99,7 +99,7 @@ func getBindingSections(mApp *app.App) []*bindingSection {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func addBinding(title string, bindingSections []*bindingSection, binding *gui.Binding) []*bindingSection {
|
func addBinding(title string, bindingSections []*bindingSection, binding *gui.Binding) []*bindingSection {
|
||||||
if binding.Description == "" {
|
if binding.Description == "" && binding.Alternative == "" {
|
||||||
return bindingSections
|
return bindingSections
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user