detached 2157834

style: fix lint issues for line length and error handling

commit
2157834a31b7505392222e8294cb1cb4b67d2b0b
author
brice · · 2026-01-29 04:19 UTC
parent
fe663f6
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
2 files · +9 -4
M internal/ui/coordinator/content.go +6 -1
@@ -1461,7 +1461,12 @@ func (c *ContentCoordinator) setupWebViewCallbacks(ctx context.Context, paneID e
14611461 // Check for external URL schemes (vscode://, vscode-insiders://, spotify://, etc.)
14621462 // These are typically triggered by JavaScript redirects (window.location)
14631463 isExternal := urlutil.IsExternalScheme(uri)
1464- log.Debug().Str("pane_id", string(paneID)).Str("uri", uri).Bool("is_external", isExternal).Bool("is_loading", wv.IsLoading()).Msg("OnURIChanged")
1464+ log.Debug().
1465+ Str("pane_id", string(paneID)).
1466+ Str("uri", uri).
1467+ Bool("is_external", isExternal).
1468+ Bool("is_loading", wv.IsLoading()).
1469+ Msg("OnURIChanged")
14651470
14661471 if isExternal {
14671472 log.Info().Str("pane_id", string(paneID)).Str("uri", uri).Msg("external scheme detected, launching externally")
@@ -1461,7 +1461,12 @@ func (c *ContentCoordinator) setupWebViewCallbacks(ctx context.Context, paneID e
1461 // Check for external URL schemes (vscode://, vscode-insiders://, spotify://, etc.)1461 // Check for external URL schemes (vscode://, vscode-insiders://, spotify://, etc.)
1462 // These are typically triggered by JavaScript redirects (window.location)1462 // These are typically triggered by JavaScript redirects (window.location)
1463 isExternal := urlutil.IsExternalScheme(uri)1463 isExternal := urlutil.IsExternalScheme(uri)
1464- log.Debug().Str("pane_id", string(paneID)).Str("uri", uri).Bool("is_external", isExternal).Bool("is_loading", wv.IsLoading()).Msg("OnURIChanged")1464+ log.Debug().
1465+ Str("pane_id", string(paneID)).
1466+ Str("uri", uri).
1467+ Bool("is_external", isExternal).
1468+ Bool("is_loading", wv.IsLoading()).
1469+ Msg("OnURIChanged")
1465 1470
1466 if isExternal {1471 if isExternal {
1467 log.Info().Str("pane_id", string(paneID)).Str("uri", uri).Msg("external scheme detected, launching externally")1472 log.Info().Str("pane_id", string(paneID)).Str("uri", uri).Msg("external scheme detected, launching externally")
M internal/ui/input/gesture.go +3 -3
@@ -128,14 +128,14 @@ func (h *GestureHandler) handlePressed(nPress int) {
128128 log.Debug().Uint("button", button).Msg("gesture: direct go back")
129129 nav.GoBackDirect()
130130 } else if handler != nil {
131- handler(h.ctx, ActionGoBack)
131+ _ = handler(h.ctx, ActionGoBack)
132132 }
133133 case mouseButtonForward:
134134 if nav != nil {
135135 log.Debug().Uint("button", button).Msg("gesture: direct go forward")
136136 nav.GoForwardDirect()
137137 } else if handler != nil {
138- handler(h.ctx, ActionGoForward)
138+ _ = handler(h.ctx, ActionGoForward)
139139 }
140140 default:
141141 // Not a navigation button, ignore
@@ -145,7 +145,7 @@ func (h *GestureHandler) handlePressed(nPress int) {
145145 // Claim the gesture sequence to stop event propagation.
146146 // This matches Epiphany's behavior: gtk_gesture_set_state(gesture, GTK_EVENT_SEQUENCE_CLAIMED)
147147 // Without this, GTK may continue propagating the event which can interfere with WebKit.
148- h.clickGesture.Gesture.SetState(gtkEventSequenceClaimed)
148+ h.clickGesture.SetState(gtkEventSequenceClaimed)
149149 }
150150
151151 // Detach removes the gesture handler.
@@ -128,14 +128,14 @@ func (h *GestureHandler) handlePressed(nPress int) {
128 log.Debug().Uint("button", button).Msg("gesture: direct go back")128 log.Debug().Uint("button", button).Msg("gesture: direct go back")
129 nav.GoBackDirect()129 nav.GoBackDirect()
130 } else if handler != nil {130 } else if handler != nil {
131- handler(h.ctx, ActionGoBack)131+ _ = handler(h.ctx, ActionGoBack)
132 }132 }
133 case mouseButtonForward:133 case mouseButtonForward:
134 if nav != nil {134 if nav != nil {
135 log.Debug().Uint("button", button).Msg("gesture: direct go forward")135 log.Debug().Uint("button", button).Msg("gesture: direct go forward")
136 nav.GoForwardDirect()136 nav.GoForwardDirect()
137 } else if handler != nil {137 } else if handler != nil {
138- handler(h.ctx, ActionGoForward)138+ _ = handler(h.ctx, ActionGoForward)
139 }139 }
140 default:140 default:
141 // Not a navigation button, ignore141 // Not a navigation button, ignore
@@ -145,7 +145,7 @@ func (h *GestureHandler) handlePressed(nPress int) {
145 // Claim the gesture sequence to stop event propagation.145 // Claim the gesture sequence to stop event propagation.
146 // This matches Epiphany's behavior: gtk_gesture_set_state(gesture, GTK_EVENT_SEQUENCE_CLAIMED)146 // This matches Epiphany's behavior: gtk_gesture_set_state(gesture, GTK_EVENT_SEQUENCE_CLAIMED)
147 // Without this, GTK may continue propagating the event which can interfere with WebKit.147 // Without this, GTK may continue propagating the event which can interfere with WebKit.
148- h.clickGesture.Gesture.SetState(gtkEventSequenceClaimed)148+ h.clickGesture.SetState(gtkEventSequenceClaimed)
149 }149 }
150 150
151 // Detach removes the gesture handler.151 // Detach removes the gesture handler.

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