Add backward cycling support for log view (using <shift>-a on status page) - #5346
#5346Merged
stefanhaller merged 1 commit intoMar 8, 2026
jesseduffield:masterjesseduffield/lazygit:masterfrom
zaakiy:5345-support-backward-log-view-cyclingzaakiy/lazygit:5345-support-backward-log-view-cyclingCopy head branch name to clipboard
Merged
Add backward cycling support for log view (using <shift>-a on status page)#5346stefanhaller merged 1 commit intojesseduffield:masterjesseduffield/lazygit:masterfrom zaakiy:5345-support-backward-log-view-cyclingzaakiy/lazygit:5345-support-backward-log-view-cyclingCopy head branch name to clipboard
<shift>-a on status page)#5346stefanhaller merged 1 commit into
jesseduffield:masterjesseduffield/lazygit:masterfrom
zaakiy:5345-support-backward-log-view-cyclingzaakiy/lazygit:5345-support-backward-log-view-cyclingCopy head branch name to clipboard
Conversation
stefanhaller
force-pushed
the
5345-support-backward-log-view-cycling
branch
from
March 8, 2026 15:55
3bdcbb1 to
6ca5960
Compare
This commit implements the ability to cycle backward through different all branches log visualization modes, complementing the existing forward cycling functionality. Users can now press 'A' (Shift+a) to cycle in reverse through the available log graph views, improving navigation efficiency when they overshoot their desired view. Changes: - Added RotateAllBranchesLogIdxBackward() method to BranchCommands for backward rotation through log command candidates - Introduced AllBranchesLogGraphReverse keybinding configuration with default key 'A' (uppercase) - Implemented switchToOrRotateAllBranchesLogsBackward() handler in StatusController that mirrors forward cycling logic - Added English translation for "Show/cycle all branch logs (reverse)" The implementation uses modulo arithmetic with proper handling of negative indices to ensure seamless backward cycling through the available log visualization options.
stefanhaller
force-pushed
the
5345-support-backward-log-view-cycling
branch
from
March 8, 2026 16:06
6ca5960 to
7d32e45
Compare
Collaborator
|
Thanks, makes sense. I dropped your changes to the non-English language files (we don't maintain these here, but on Crowdin), and added a little bit of test coverage. |
stefanhaller
enabled auto-merge
March 8, 2026 16:08
tmeijn
pushed a commit
to tmeijn/dotfiles
that referenced
this pull request
Mar 24, 2026
This MR contains the following updates: | Package | Update | Change | |---|---|---| | [jesseduffield/lazygit](https://github.com/jesseduffield/lazygit) | minor | `v0.59.0` → `v0.60.0` | MR created with the help of [el-capitano/tools/renovate-bot](https://gitlab.com/el-capitano/tools/renovate-bot). **Proposed changes to behavior should be submitted there as MRs.** --- ### Release Notes <details> <summary>jesseduffield/lazygit (jesseduffield/lazygit)</summary> ### [`v0.60.0`](https://github.com/jesseduffield/lazygit/releases/tag/v0.60.0) [Compare Source](jesseduffield/lazygit@v0.59.0...v0.60.0) <!-- Release notes generated using configuration in .github/release.yml at v0.60.0 --> #### What's Changed ##### Enhancements 🔥 - Rename "Copy commit hash to clipboard" to mention it's an abbreviated hash by [@​stefanhaller](https://github.com/stefanhaller) in [#​5331](jesseduffield/lazygit#5331) - Hide the "Fetching..." status of the auto-fetch when bottom line is hidden by [@​stefanhaller](https://github.com/stefanhaller) in [#​5321](jesseduffield/lazygit#5321) - Allow removing lines from patch directly by [@​jesseduffield](https://github.com/jesseduffield) in [#​5277](jesseduffield/lazygit#5277) - Filter file views rather than search by [@​jesseduffield](https://github.com/jesseduffield) in [#​5273](jesseduffield/lazygit#5273) - Show branch name and detached HEAD in worktrees tab by [@​ruudk](https://github.com/ruudk) in [#​5339](jesseduffield/lazygit#5339) - Add backward cycling support for log view (using `<shift>-a` on status page) by [@​zaakiy](https://github.com/zaakiy) in [#​5346](jesseduffield/lazygit#5346) - Show worktree name next to branch in branches list by [@​ruudk](https://github.com/ruudk) in [#​5340](jesseduffield/lazygit#5340) ##### Fixes 🔧 - Fix matching of lazygit-edit URLs without line numbers by [@​danielwe](https://github.com/danielwe) in [#​5311](jesseduffield/lazygit#5311) - Fix [#​5302](jesseduffield/lazygit#5302): Create .git/info directory before writing exclude file by [@​cobyfrombrooklyn-bot](https://github.com/cobyfrombrooklyn-bot) in [#​5325](jesseduffield/lazygit#5325) - Fix off-by-one error when calculating popup panel dimensions by [@​stefanhaller](https://github.com/stefanhaller) in [#​5312](jesseduffield/lazygit#5312) - Properly disable clicks in inactive views behind popups by [@​stefanhaller](https://github.com/stefanhaller) in [#​5313](jesseduffield/lazygit#5313) - Enable `{` and `}` to change diff context size in branches and tags panels in diffing mode by [@​stefanhaller](https://github.com/stefanhaller) in [#​5258](jesseduffield/lazygit#5258) - Fix diff display of custom pagers after screen mode change by [@​stefanhaller](https://github.com/stefanhaller) in [#​5349](jesseduffield/lazygit#5349) ##### Maintenance ⚙️ - Bump github.com/cloudflare/circl from 1.6.1 to 1.6.3 by [@​dependabot](https://github.com/dependabot)\[bot] in [#​5323](jesseduffield/lazygit#5323) ##### Docs 📖 - Fix typo: MacOS to macOS by [@​04cb](https://github.com/04cb) in [#​5335](jesseduffield/lazygit#5335) ##### I18n 🌎 - Update translations from Crowdin by [@​stefanhaller](https://github.com/stefanhaller) in [#​5352](jesseduffield/lazygit#5352) ##### Other Changes - Add Terra as an alternative Fedora install method by [@​Owen-sz](https://github.com/Owen-sz) in [#​5281](jesseduffield/lazygit#5281) #### New Contributors - [@​Owen-sz](https://github.com/Owen-sz) made their first contribution in [#​5281](jesseduffield/lazygit#5281) - [@​danielwe](https://github.com/danielwe) made their first contribution in [#​5311](jesseduffield/lazygit#5311) - [@​cobyfrombrooklyn-bot](https://github.com/cobyfrombrooklyn-bot) made their first contribution in [#​5325](jesseduffield/lazygit#5325) - [@​04cb](https://github.com/04cb) made their first contribution in [#​5335](jesseduffield/lazygit#5335) - [@​zaakiy](https://github.com/zaakiy) made their first contribution in [#​5346](jesseduffield/lazygit#5346) **Full Changelog**: <jesseduffield/lazygit@v0.59.0...v0.60.0> </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever MR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this MR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this MR, check this box --- This MR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0My42MS43IiwidXBkYXRlZEluVmVyIjoiNDMuNjEuNyIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOlsiUmVub3ZhdGUgQm90IiwiYXV0b21hdGlvbjpib3QtYXV0aG9yZWQiLCJkZXBlbmRlbmN5LXR5cGU6Om1pbm9yIl19-->
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This commit implements the ability to cycle backward through different all branches log visualization modes, complementing the existing forward cycling functionality. Users can now press 'A' (Shift+a) to cycle in reverse through the available log graph views, improving navigation efficiency when they overshoot their desired view.
Changes:
The implementation uses modulo arithmetic with proper handling of negative indices to ensure seamless backward cycling through the available log visualization options.
PR Description
Please check if the PR fulfills these requirements
go generate ./...)AllBranchesLogGraphReverseconfig entry supports hot-loading viacommon.Commonstruct.