You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Option to disable all default keybindings at once #5398
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.
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!
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?
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.
Activity
feat(keybindings): add option to disable all default keybindings
stefanhaller commentedon Mar 30, 2026
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.
This is actually easy enough to do using the output of
lazygit -cas a starting point.Not true; every added config has a cost. Closing.
kutsan commentedon Mar 30, 2026
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
lazygitproject!stefanhaller commentedon Mar 30, 2026
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
rin the Commits panel, butshift-Rin the branches panel, which bugs me a lot. (It's also quite difficult to fix for a number of reasons.) Any others?shodanx2 commentedon Nov 28, 2026
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.