Skip to content

Also support escape for dismissing commit error message #2552

@Tillerino

Description

@Tillerino

Is your feature request related to a problem? Please describe.
I love using pre-commit hooks and gitui nicely displays the output of the pre-commit hook when it fails:

Image

(the stacked dialogs... so beautiful 🤩)

To close this error, I now have to press enter. Escape does not work. The first couple of times, I actually quit gitui because I could not figure out how to close the dialog. Enter just does not compute for me, especially since gitui is pretty consistent with escape closing the current dialog.

I eventually figured out enter, but that breaks my brain every time. After pressing enter, I am now back in the commit dialog:

Image

I need to edit or stage stuff now, so I want to get rid of the commit dialog. What do I do? My monkey brain tells me: Close dialog again = repeat action = repeat key press. But I am in a text field. Pressing enter will just insert a line break. So for a couple of seconds, I just drool on my keyboard until eventually "close dialog = escape" echoes back to me from the future. Every time I feel like I was briefly unconscious.

Describe the solution you'd like
I want to close the commit error message dialog with escape. I think that would be consistent.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions