jesseduffield / jesseduffield/lazygit

`viewResetOptions` of commits view bleeds into the files view

Open
#5,150 1 comment 0 reactions 0 assignees View on GitHub
bug
Dominant language
Go
Stars
82.4k
Forks
3k
Avg merge
2d 18h
Merged PRs (30d)
19

Description

### Describe the bug + To Reproduce + Expected behavior
In `files` view, I make this mapping: `viewResetOptions: x` \
Then in `commits` view, I make this mapping: `viewResetOptions: x`. \
Now when I press x in files view, the commits view `viewResetOptions` pops up, instead of the files view one.

i.e. something in the action resolution results in the commits view action, if the hotkeys are the same. \
For instance, if I set the `commits` view mapping to `viewResetOptions: X` instead, now x in files view works as expected.

### Screenshots

Image

### Version info:

* _Run `lazygit --version` and paste the result here_
```
commit=9e455f427, build date=20251224.222320, build source=unknown, version=v0.57.0.9e455f427, os=linux, arch=amd64, git version=2.52.0
```
* _Run `git --version` and paste the result here_
```
git version 2.52.0
```

### Additional context
This is a regression as far as I can tell. This used to work and now has been broken for I think months. \
I built latest lazygit from master thinking that hopefully the bug has already been solved here, but no dice. I don't get how I'm seemingly the only person to notice this.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.