Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

shortcuts for up and down arrows #27

Closed
ibeckermayer opened this issue Aug 6, 2018 · 8 comments
Closed

shortcuts for up and down arrows #27

ibeckermayer opened this issue Aug 6, 2018 · 8 comments

Comments

@ibeckermayer
Copy link

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.

@jesseduffield
Copy link
Owner

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)

@jesseduffield jesseduffield added this to the Configurable Keybindings milestone Aug 6, 2018
@fictorial
Copy link

h j k l and c-n c-p built-in might make sense

@jesseduffield
Copy link
Owner

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).

@ibeckermayer
Copy link
Author

ibeckermayer commented Aug 9, 2018 via email

@jesseduffield
Copy link
Owner

jesseduffield commented Aug 10, 2018

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

@glvr182
Copy link
Contributor

glvr182 commented Sep 9, 2018

@ibeckermayer @jesseduffield is this issue fixed?

@p-z-l
Copy link

p-z-l commented Jul 26, 2019

maybe it is possible to allow scrolling with n & p

@jesseduffield
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants