Skip to content

Option to disable all default keybindings at once #5398

Closed

Description

@kutsan

Is your feature request related to a problem? Please describe.

Currently, as far as I know lazygit doesn't provide a way to disable all default keybindings at once. If you want to build a fully custom keymap layout from scratch, you have to manually override every single default keybinding one by one in the config.

Describe the solution you'd like

An option like keybinding.disableAllDefaults: true that disables all built-in keybindings giving users a blank slate. Users would explicitly add back whichever bindings they need in their config.

Describe alternatives you've considered

Manually setting every default keybinding to <disabled>.

Additional context

I think this is a common pattern for power user tools and would be nice to have it with no additional disadvantages.

Activity

  1. added
    enhancement
    on Mar 20, 2026
  2. stefanhaller commented on Mar 30, 2026

    @stefanhaller
    Collaborator

    I don't consider this useful. Building a fully custom keymap from scratch is not something that I expect lazygit users to want to do.

    Manually setting every default keybinding to <disabled>.

    This is actually easy enough to do using the output of lazygit -c as a starting point.

    with no additional disadvantages

    Not true; every added config has a cost. Closing.

  3. kutsan commented on Mar 30, 2026

    @kutsan
    Author

    For a custom keymap system, having users start from a clean state with all keybindings cleared made sense to me but it's your call of course. There are a ton of keybindings and I don't think the defaults are great picks. Resetting everything also give users more control. For instance, you could disable destructive operations by default, only allow certain actions and it would prevent any future keybinding additions from messing with the keymap state defined in the user's config.

    Either way, thanks for the response and for lazygit project!

  4. stefanhaller commented on Mar 30, 2026

    @stefanhaller
    Collaborator

    and I don't think the defaults are great picks.

    That would be a different issue though, and one that is totally worth fixing. Which ones do you have in mind? I can see us make breaking changes to improve the defaults if we can make a strong case. I want lazygit to be usable by default out of the box, and if we see deficiencies here, the solution is not to make it easier for users to fix it on their end, but to improve it by default.

    One example that I can think of is how rename/reword is bound to r in the Commits panel, but shift-R in the branches panel, which bugs me a lot. (It's also quite difficult to fix for a number of reasons.) Any others?

  5. shodanx2 commented on Nov 28, 2026

    @shodanx2

    So many game designers don't get it, first thing I do with a game is wipe out the nonsense default keybinding, if I even knew what lazygit was or had a use for it, I would. This is also, so easy to just enumerate keybinds and null them. The author can't imagine otherwise to they don't hopefully you can just add a patch to do it.
    I was actually searching for "wipe all keybindings" for gta5 and somehow ended up here from search, this has nothing to do with GTA5, but I've found 2 external keybind editor and they ALSO lack this obvious, basic feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancement

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions