MitMaro/git-interactive-rebase-tool

Hotkey request: add behavior to ENTER key to show commit details

Closed this issue · 5 comments

The 'c' is nice, but I'd like to see the fuller diff. perhaps with "enter" key?

currently, I have to open another terminal to do git diff to see what the commit changes were.

Diff view is here:

so I'm re-titling that I'm requesting enter hotkey to have behavior

Thanks for the request @glensc !

I believe enter is already partially supported but there is no way to use it in the configuration. Should be fairly easy to add.

If you are interested in taking a look yourself I believe that adding an "enter" to "Enter" mapping in the match in this configuration parser would work:

match value.to_lowercase().as_ref() {

Enter is already supported in the input handler so it should just work from there:

fn get_character(&self, input: &str) -> Input {

Good point! Fixed.

Enter along with as many other special character keys has been added and will be in the next release. Thanks for the request!