Skip to content

Avoid accidental hard resets #4688

@Reun85

Description

@Reun85

Is your feature request related to a problem? Please describe.
While managing my git repo, I accidentally dropped a pen I was fidgeting with on the keyboard, completely nuking all of my uncommitted changes (rip 6hrs). It took me a good while to even figure out what command may have been run. Only to realise that the keybind combination to perform a hard reset is gh, two buttons next to each other on the keyboard. I am now deeply scared and honestly baffled at how I have not fat-fingered these keys by accident previously.

Describe the solution you'd like
Make keybinds in the reset menu (and any other menu) changeable via the keybind config.

Describe alternatives you've considered
A confirmation menu for specifically unrecoverable destructive changes. (If implemented, the user must be able to opt-out.)

Additional context
I am not the first to propose this alternative. Previous requests were denied for the same reason the git cli tool denies them. Unlike a cli tool, in a tui application, accidents are going to happen, and the same argument here is unjustifiable in my opinion.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions