lazygit icon indicating copy to clipboard operation
lazygit copied to clipboard

Commit message history on commit

Open oprichnik opened this issue 7 years ago • 6 comments

A simple usefull enhancement would be to navigate between commits messages with UP / DOWN arrows when commit popup is open (to allow something like git commit -c HEAD~X).

oprichnik avatar Aug 21 '18 09:08 oprichnik

I have implemented it here: https://github.com/dawidd6/lazygit/tree/feature/commit_history

Cycling is done with Home and End keys currently. Would be great if you @oprichnik could test it.

dawidd6 avatar Sep 09 '18 11:09 dawidd6

The home/end approach sounds good to me. Not sure how stale that implementation is but this sounds like a small-enough feature to be a good fit for hacktoberfest

jesseduffield avatar Sep 25 '21 01:09 jesseduffield

note that home/end are now being used to jump to the start/end of the commit message so we'd need to find other keybindings

jesseduffield avatar Oct 17 '21 09:10 jesseduffield

@jesseduffield I'd like to pick this up if it isn't already being worked on 👍🏻

ghost avatar Oct 23 '21 14:10 ghost

Sounds good @Liberatys :)

jesseduffield avatar Oct 23 '21 23:10 jesseduffield

@jesseduffield currently Up jumps to the start of the commit message, while Down does nothing. Since Home already jumps to the start, what do you think about Up/Down for navigating through commit messages?

sportshead avatar Jul 29 '22 06:07 sportshead

This has been implemented in #2390, closing.

mark2185 avatar Nov 04 '23 13:11 mark2185