It would be great if one could use the classic emacs/terminal shortcuts of C-n and C-p as substitutes for the up and down arrows. That way I could use lazygit without having to move my fingers too far from starting position. Another more general option would be either an interface or tutorial to allow users to change this to their desired keys.
Yep configurable keybindings is gonna be first on my list of milestones. I'm going to list all the milestones on the readme tonight (currently at work and eager to get back to this project haha)
h j k l and c-n c-p built-in might make sense
I'm gonna put up a release soon that contains the hjkl keybindings by default. I'm not sure what you mean by c-n and c-p. Do you mean like command/control/something else? There's a chance that the gocui library as it stands doesn't support the modifier key, or having two keys pressed in sequence (though it's technically possible to support that anyway).
Yeah, C-n means “hold control and press n”
On Thu, Aug 9, 2018 at 05:22 Jesse Duffield notifications@github.com
wrote:
I'm gonna put up a release soon that contains the hjkl keybindings by
default. I'm not sure what you mean by c-n and c-p. Do you mean like
command/control/something else? There's a chance that the gocui library as
it stands doesn't support the modifier key, or having two keys pressed in
sequence (though it's technically possible to support that anyway).—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
https://github.com/jesseduffield/lazygit/issues/27#issuecomment-411738514,
or mute the thread
https://github.com/notifications/unsubscribe-auth/AM8xKWnIFH-Wa_FhCTOf2Rms9dODS0wmks5uPCmCgaJpZM4Vvqyc
.
Currently there is no possible keybinding for that supported by gocui (it only has command to my knowledge)
Having said that the latest release now has the hjkl keybindings
@ibeckermayer @jesseduffield is this issue fixed?
maybe it is possible to allow scrolling with n & p
currently we support hjkl and we also support C-j and C-k for scrolling the main panel, so I'll close this issue and retain the one for generally supporting custom keybindings
Most helpful comment
Yep configurable keybindings is gonna be first on my list of milestones. I'm going to list all the milestones on the readme tonight (currently at work and eager to get back to this project haha)