mirror of
https://github.com/jesseduffield/lazygit.git
synced 2025-01-22 05:29:44 +02:00
add scroll keybinding to displayed files panel options
This commit is contained in:
parent
18aa5b1bbe
commit
75a186614a
@ -129,16 +129,17 @@ func handleIgnoreFile(g *gocui.Gui, v *gocui.View) error {
|
|||||||
|
|
||||||
func renderfilesOptions(g *gocui.Gui, gitFile *GitFile) error {
|
func renderfilesOptions(g *gocui.Gui, gitFile *GitFile) error {
|
||||||
optionsMap := map[string]string{
|
optionsMap := map[string]string{
|
||||||
"← → ↑ ↓": "navigate",
|
"← → ↑ ↓": "navigate",
|
||||||
"S": "stash files",
|
"S": "stash files",
|
||||||
"c": "commit changes",
|
"c": "commit changes",
|
||||||
"o": "open",
|
"o": "open",
|
||||||
"i": "ignore",
|
"i": "ignore",
|
||||||
"d": "delete",
|
"d": "delete",
|
||||||
"space": "toggle staged",
|
"space": "toggle staged",
|
||||||
"R": "refresh",
|
"R": "refresh",
|
||||||
"t": "add patch",
|
"t": "add patch",
|
||||||
"e": "edit",
|
"e": "edit",
|
||||||
|
"PgUp/PgDn": "scroll",
|
||||||
}
|
}
|
||||||
if state.HasMergeConflicts {
|
if state.HasMergeConflicts {
|
||||||
optionsMap["a"] = "abort merge"
|
optionsMap["a"] = "abort merge"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user