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
Describe the bug
The status panel (panel 1) allows cycling through different log commands if more than one is specified via allBranchesLogCmds configuration option.
If you switch focus between the status panel and different panel (e.g. using tab or number keys) I would expect the same log command output to come up as before.
But it seems that the output cycles through the log commands as if I had pressed the 'a' key after switching panels.
To Reproduce
Steps to reproduce the behavior:
Configure two different log commands for allBranchesLogCmds configuration option in config.yml
In lazygit press 1 to focus status panel
In lazygit check output of log command
In lazygit press 2 to focus files panel
In lazygit press 1 to focus status panel
In lazygit compare output of log command to previous output
Expected behavior
I expect to see the output of the same git log command after switching away from and back to the status panel.
Cool, the problem here is that we have the same code for processing a click of 1 when that setting is turned on, as we have when you click a to rotate panels. So we just need to split that behavior such that 1 doesn't rotate the active panel, but a does.
There is just one slight edge where we'll want to overload a such that when a user doesn't have allBranchesLog set, it just transitions to that view, and then begins to rotate through options on future presses. I'm not precisely sure the best way to query "Which view am I currently looking at in this panel", but I think I'll be able to find that out
Describe the bug
The status panel (panel 1) allows cycling through different log commands if more than one is specified via allBranchesLogCmds configuration option.
If you switch focus between the status panel and different panel (e.g. using tab or number keys) I would expect the same log command output to come up as before.
But it seems that the output cycles through the log commands as if I had pressed the 'a' key after switching panels.
To Reproduce
Steps to reproduce the behavior:
Expected behavior
I expect to see the output of the same git log command after switching away from and back to the status panel.
Version info:
commit=1b571f9e6b0a9a0040654aaf99333509a74613fc, build date=2025-03-01T02:30:10Z, build source=binaryRelease, version=0.48.0, os=linux, arch=amd64, git version=2.27.0
The text was updated successfully, but these errors were encountered: