Lazygit: shortcuts for up and down arrows

Created on 6 Aug 2018  ·  8Comments  ·  Source: jesseduffield/lazygit

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.

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)

All 8 comments

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

Was this page helpful?
0 / 5 - 0 ratings

Related issues

matthiasroos picture matthiasroos  ·  3Comments

kristijanhusak picture kristijanhusak  ·  6Comments

rubensr-pc picture rubensr-pc  ·  5Comments

mxmerz picture mxmerz  ·  6Comments

letarg0 picture letarg0  ·  4Comments