detached e79a598

Fix Go lint findings

commit
e79a59889947d9ce743d79a99794d262e22adac3
author
brice · · 2026-05-11 17:26 UTC
parent
6b42329
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +3 -2
M internal/infrastructure/cef/webview_viewport.go +0 -1
@@ -124,7 +124,6 @@ func (wv *WebView) scheduleResizeRepaintPulse(ctx context.Context, reason string
124124 }
125125 seq := wv.viewportResizePulseSeq.Add(1)
126126 for _, delayMs := range [...]int64{16, 48} {
127- delayMs := delayMs
128127 task := cefNewTask(cefTaskFunc(func() {
129128 if wv == nil || wv.destroyed.Load() || wv.viewportResizePulseSeq.Load() != seq {
130129 return
@@ -124,7 +124,6 @@ func (wv *WebView) scheduleResizeRepaintPulse(ctx context.Context, reason string
124 }124 }
125 seq := wv.viewportResizePulseSeq.Add(1)125 seq := wv.viewportResizePulseSeq.Add(1)
126 for _, delayMs := range [...]int64{16, 48} {126 for _, delayMs := range [...]int64{16, 48} {
127- delayMs := delayMs
128 task := cefNewTask(cefTaskFunc(func() {127 task := cefNewTask(cefTaskFunc(func() {
129 if wv == nil || wv.destroyed.Load() || wv.viewportResizePulseSeq.Load() != seq {128 if wv == nil || wv.destroyed.Load() || wv.viewportResizePulseSeq.Load() != seq {
130 return129 return
M internal/ui/coordinator/content/lifecycle_test.go +3 -1
@@ -259,6 +259,8 @@ func TestLifecycle_RegisterPopupWebView_IgnoresNil(t *testing.T) {
259259 assert.Nil(t, c.GetWebView("popup-1"))
260260 }
261261
262+type syncViewportContextKey struct{}
263+
262264 type syncViewportCapableStub struct {
263265 port.WebView
264266 called bool
@@ -280,7 +282,7 @@ func TestLifecycle_SyncWebViewViewport_DelegatesWhenCapabilityPresent(t *testing
280282 c := newMinimalCoordinator()
281283 c.webViews[entity.PaneID("pane-1")] = wv
282284
283- ctx := context.WithValue(context.Background(), struct{}{}, "marker")
285+ ctx := context.WithValue(context.Background(), syncViewportContextKey{}, "marker")
284286 c.SyncWebViewViewport(ctx, "pane-1", "unit-test")
285287
286288 require.True(t, wv.called)
@@ -259,6 +259,8 @@ func TestLifecycle_RegisterPopupWebView_IgnoresNil(t *testing.T) {
259 assert.Nil(t, c.GetWebView("popup-1"))259 assert.Nil(t, c.GetWebView("popup-1"))
260 }260 }
261 261
262+type syncViewportContextKey struct{}
263+
262 type syncViewportCapableStub struct {264 type syncViewportCapableStub struct {
263 port.WebView265 port.WebView
264 called bool266 called bool
@@ -280,7 +282,7 @@ func TestLifecycle_SyncWebViewViewport_DelegatesWhenCapabilityPresent(t *testing
280 c := newMinimalCoordinator()282 c := newMinimalCoordinator()
281 c.webViews[entity.PaneID("pane-1")] = wv283 c.webViews[entity.PaneID("pane-1")] = wv
282 284
283- ctx := context.WithValue(context.Background(), struct{}{}, "marker")285+ ctx := context.WithValue(context.Background(), syncViewportContextKey{}, "marker")
284 c.SyncWebViewViewport(ctx, "pane-1", "unit-test")286 c.SyncWebViewViewport(ctx, "pane-1", "unit-test")
285 287
286 require.True(t, wv.called)288 require.True(t, wv.called)

Keyboard shortcuts

Single-key shortcuts are on. ctrl k and esc work whatever this says.

ctrl k :
go to a section, branch, tag, file or repository
?
this list
j k
move the row cursor down / up
enter
open the row under the cursor; on Files, a directory opens or closes in place
↑ ↓ ← → home end
in the file tree (focus on a row): previous / next row, close / open a directory or go to its parent / first entry, first / last row. They never open a file
l h
on Files: open a directory or a file / close a directory or go up to its parent, then to the parent page. Elsewhere: into the side panel (on a merge request, its files) / back to the content; there j k move between its controls
g g G
first / last row
/
filter the list; on Files, find a file anywhere in the repository (esc clears, enter opens the best match)
b
switch branch or tag
g s g f g c g b g m g i g r g a
tabs: summary, files, commits, branches & tags, merge requests, issues, releases, actions (when available)
g h
home
w
wide mode: use the whole width of the screen, or not (remembered)
y
copy a permalink pinned to the commit
d u x
diff: split / unified / collapse or expand all
e E
diff: the whole file in view / every file, with the lines the hunks hide
n
merge request: next note in the diff
esc
close a dialog, leave a field

Branches 8

Tags 42

↑↓ moveenter openesc close