Import upstream PR #816: add Vim-style main-panel navigation - #1
Merged
Merged
Conversation
Add GotoTop and GotoBottom translation entries used by the upcoming vim-style gg/G navigation bindings in the main panel.
Add handlers that scroll the main panel to the top and bottom. gotoTopMain implements the vim-style "gg" double press (gocui has no native key-sequence support) by tracking the last 'g' press timestamp in the gui state, while gotoBottomMain jumps to the final line, honouring the ScrollPastBottom config. The origin math and double-press timing are factored into pure helpers so they can be unit tested.
Pressing 'gg' jumps to the top and 'G' jumps to the bottom of the main panel, matching vim navigation. The bindings are scoped to the main view so they apply across all of its tabs (Config, Logs, Env, Stats, Top).
When the main panel is focused (e.g. the Container Config screen) the options bar now lists the gg/G scroll-to-top/bottom shortcuts alongside the existing scroll and navigation hints.
Cover the gotoBottomOriginY origin math (scroll-past-bottom on/off, content shorter than the view, empty content) and the isDoublePress timing used to detect the vim-style "gg" double press.
Auto-generated from the new main-panel scroll-to-top/bottom bindings.
callmiy
marked this pull request as ready for review
July 20, 2026 22:54
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.
What changed
Imports jesseduffield/lazydocker#816 unchanged, preserving its six original commits and authorship.
ggto jump to the top of the main panel.Gto jump to the bottom.Why
Long container configuration views are cumbersome to navigate page by page. This implements the Vim-style navigation requested in upstream issue #792.
Validation
bash ./test.shGOFLAGS=-mod=vendor go test ./...go run scripts/cheatsheet/main.go checkgo mod vendorwith no diffgofmt -scheckUpstream had no reported CI checks or reviews, so this fork validates the import independently.