detached 920e9ed

fix(ci): add import aliases and gobject-introspection dep for lint

commit
920e9ed5b3e2b927e163e7ff47821e7dff59535d
author
bnema · · 2025-11-30 04:18 UTC
parent
c2596cc
signature
unsigned
12 files · +29 -28
M .github/workflows/ci.yml +2 -2
@@ -22,7 +22,7 @@ jobs:
2222 - name: Install WebKitGTK 6.0 dependencies
2323 run: |
2424 sudo apt-get update
25- sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev
25+ sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev
2626 - name: Build frontend assets
2727 run: make build-frontend
2828 - name: Run golangci-lint
@@ -43,7 +43,7 @@ jobs:
4343 - name: Install WebKitGTK 6.0 dependencies
4444 run: |
4545 sudo apt-get update
46- sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev
46+ sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev
4747 - name: Build frontend assets
4848 run: make build-frontend
4949 - name: Run tests
@@ -22,7 +22,7 @@ jobs:
22 - name: Install WebKitGTK 6.0 dependencies22 - name: Install WebKitGTK 6.0 dependencies
23 run: |23 run: |
24 sudo apt-get update24 sudo apt-get update
25- sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev25+ sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev
26 - name: Build frontend assets26 - name: Build frontend assets
27 run: make build-frontend27 run: make build-frontend
28 - name: Run golangci-lint28 - name: Run golangci-lint
@@ -43,7 +43,7 @@ jobs:
43 - name: Install WebKitGTK 6.0 dependencies43 - name: Install WebKitGTK 6.0 dependencies
44 run: |44 run: |
45 sudo apt-get update45 sudo apt-get update
46- sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev46+ sudo apt-get install -y libwebkitgtk-6.0-dev libgtk-4-dev libgirepository1.0-dev
47 - name: Build frontend assets47 - name: Build frontend assets
48 run: make build-frontend48 run: make build-frontend
49 - name: Run tests49 - name: Run tests
M internal/app/api/scheme.go +2 -2
@@ -14,8 +14,8 @@ import (
1414 "github.com/bnema/dumber/internal/logging"
1515 "github.com/bnema/dumber/internal/services"
1616 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
17- "github.com/diamondburned/gotk4/pkg/gio/v2"
18- "github.com/diamondburned/gotk4/pkg/glib/v2"
17+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
18+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
1919 )
2020
2121 // SchemeHandler handles custom dumb:// scheme resolution
@@ -14,8 +14,8 @@ import (
14 "github.com/bnema/dumber/internal/logging"14 "github.com/bnema/dumber/internal/logging"
15 "github.com/bnema/dumber/internal/services"15 "github.com/bnema/dumber/internal/services"
16 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"16 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
17- "github.com/diamondburned/gotk4/pkg/gio/v2"17+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
18- "github.com/diamondburned/gotk4/pkg/glib/v2"18+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
19 )19 )
20 20
21 // SchemeHandler handles custom dumb:// scheme resolution21 // SchemeHandler handles custom dumb:// scheme resolution
M internal/app/browser/workspace_manager.go +2 -2
@@ -12,8 +12,8 @@ import (
1212 "github.com/bnema/dumber/internal/app/messaging"
1313 "github.com/bnema/dumber/internal/logging"
1414 "github.com/bnema/dumber/pkg/webkit"
15- "github.com/diamondburned/gotk4/pkg/glib/v2"
16- "github.com/diamondburned/gotk4/pkg/gtk/v4"
15+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
16+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
1717 )
1818
1919 // WorkspaceManager coordinates Zellij-style pane operations.
@@ -12,8 +12,8 @@ import (
12 "github.com/bnema/dumber/internal/app/messaging"12 "github.com/bnema/dumber/internal/app/messaging"
13 "github.com/bnema/dumber/internal/logging"13 "github.com/bnema/dumber/internal/logging"
14 "github.com/bnema/dumber/pkg/webkit"14 "github.com/bnema/dumber/pkg/webkit"
15- "github.com/diamondburned/gotk4/pkg/glib/v2"15+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
16- "github.com/diamondburned/gotk4/pkg/gtk/v4"16+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
17 )17 )
18 18
19 // WorkspaceManager coordinates Zellij-style pane operations.19 // WorkspaceManager coordinates Zellij-style pane operations.
M internal/app/browser/workspace_utils.go +3 -2
@@ -3,10 +3,11 @@ package browser
33
44 import (
55 "fmt"
6+
67 "github.com/bnema/dumber/internal/logging"
78 "github.com/bnema/dumber/pkg/webkit"
8- "github.com/diamondburned/gotk4/pkg/glib/v2"
9- "github.com/diamondburned/gotk4/pkg/gtk/v4"
9+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
10+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
1011 )
1112
1213 // UpdateTitleBar updates the title bar label for a WebView in stacked panes
@@ -3,10 +3,11 @@ package browser
3 3
4 import (4 import (
5 "fmt"5 "fmt"
6+
6 "github.com/bnema/dumber/internal/logging"7 "github.com/bnema/dumber/internal/logging"
7 "github.com/bnema/dumber/pkg/webkit"8 "github.com/bnema/dumber/pkg/webkit"
8- "github.com/diamondburned/gotk4/pkg/glib/v2"9+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
9- "github.com/diamondburned/gotk4/pkg/gtk/v4"10+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
10 )11 )
11 12
12 // UpdateTitleBar updates the title bar label for a WebView in stacked panes13 // UpdateTitleBar updates the title bar label for a WebView in stacked panes
M internal/services/favicon_service.go +2 -2
@@ -15,8 +15,8 @@ import (
1515 "github.com/bnema/dumber/internal/logging"
1616 "github.com/bnema/dumber/internal/parser"
1717 "github.com/bnema/dumber/pkg/webkit"
18- "github.com/diamondburned/gotk4/pkg/gdk/v4"
19- "github.com/diamondburned/gotk4/pkg/gio/v2"
18+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
19+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
2020 )
2121
2222 // FaviconService provides unified favicon access using WebKitGTK's native database.
@@ -15,8 +15,8 @@ import (
15 "github.com/bnema/dumber/internal/logging"15 "github.com/bnema/dumber/internal/logging"
16 "github.com/bnema/dumber/internal/parser"16 "github.com/bnema/dumber/internal/parser"
17 "github.com/bnema/dumber/pkg/webkit"17 "github.com/bnema/dumber/pkg/webkit"
18- "github.com/diamondburned/gotk4/pkg/gdk/v4"18+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
19- "github.com/diamondburned/gotk4/pkg/gio/v2"19+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
20 )20 )
21 21
22 // FaviconService provides unified favicon access using WebKitGTK's native database.22 // FaviconService provides unified favicon access using WebKitGTK's native database.
M pkg/webkit/content_blocking.go +2 -2
@@ -8,8 +8,8 @@ import (
88
99 "github.com/bnema/dumber/internal/logging"
1010 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
11- "github.com/diamondburned/gotk4/pkg/gio/v2"
12- "github.com/diamondburned/gotk4/pkg/glib/v2"
11+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
12+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
1313 )
1414
1515 // ContentBlockingManager handles WebKit content filtering
@@ -8,8 +8,8 @@ import (
8 8
9 "github.com/bnema/dumber/internal/logging"9 "github.com/bnema/dumber/internal/logging"
10 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"10 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
11- "github.com/diamondburned/gotk4/pkg/gio/v2"11+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
12- "github.com/diamondburned/gotk4/pkg/glib/v2"12+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
13 )13 )
14 14
15 // ContentBlockingManager handles WebKit content filtering15 // ContentBlockingManager handles WebKit content filtering
M pkg/webkit/favicon_helpers.go +3 -3
@@ -17,10 +17,10 @@ import (
1717 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
1818 "github.com/diamondburned/gotk4/pkg/core/gerror"
1919 coreglib "github.com/diamondburned/gotk4/pkg/core/glib"
20- "github.com/diamondburned/gotk4/pkg/gdk/v4"
21- "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
20+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
21+ gdkpixbuf "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
2222 gio "github.com/diamondburned/gotk4/pkg/gio/v2"
23- "github.com/diamondburned/gotk4/pkg/glib/v2"
23+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
2424 )
2525
2626 // GdkTexture is an alias for gotk4's Texture type
@@ -17,10 +17,10 @@ import (
17 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"17 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
18 "github.com/diamondburned/gotk4/pkg/core/gerror"18 "github.com/diamondburned/gotk4/pkg/core/gerror"
19 coreglib "github.com/diamondburned/gotk4/pkg/core/glib"19 coreglib "github.com/diamondburned/gotk4/pkg/core/glib"
20- "github.com/diamondburned/gotk4/pkg/gdk/v4"20+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
21- "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"21+ gdkpixbuf "github.com/diamondburned/gotk4/pkg/gdkpixbuf/v2"
22 gio "github.com/diamondburned/gotk4/pkg/gio/v2"22 gio "github.com/diamondburned/gotk4/pkg/gio/v2"
23- "github.com/diamondburned/gotk4/pkg/glib/v2"23+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
24 )24 )
25 25
26 // GdkTexture is an alias for gotk4's Texture type26 // GdkTexture is an alias for gotk4's Texture type
M pkg/webkit/helpers.go +4 -4
@@ -1,10 +1,10 @@
11 package webkit
22
33 import (
4- "github.com/diamondburned/gotk4/pkg/gdk/v4"
5- "github.com/diamondburned/gotk4/pkg/gio/v2"
6- "github.com/diamondburned/gotk4/pkg/glib/v2"
7- "github.com/diamondburned/gotk4/pkg/gtk/v4"
4+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
5+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
6+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
7+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
88 )
99
1010 // IsNativeAvailable returns true if the native GTK/WebKit libraries are available
@@ -1,10 +1,10 @@
1 package webkit1 package webkit
2 2
3 import (3 import (
4- "github.com/diamondburned/gotk4/pkg/gdk/v4"4+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
5- "github.com/diamondburned/gotk4/pkg/gio/v2"5+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
6- "github.com/diamondburned/gotk4/pkg/glib/v2"6+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
7- "github.com/diamondburned/gotk4/pkg/gtk/v4"7+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
8 )8 )
9 9
10 // IsNativeAvailable returns true if the native GTK/WebKit libraries are available10 // IsNativeAvailable returns true if the native GTK/WebKit libraries are available
M pkg/webkit/mainloop.go +2 -2
@@ -3,8 +3,8 @@ package webkit
33 import (
44 "runtime"
55
6- "github.com/diamondburned/gotk4/pkg/glib/v2"
7- "github.com/diamondburned/gotk4/pkg/gtk/v4"
6+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
7+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
88 )
99
1010 var (
@@ -3,8 +3,8 @@ package webkit
3 import (3 import (
4 "runtime"4 "runtime"
5 5
6- "github.com/diamondburned/gotk4/pkg/glib/v2"6+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
7- "github.com/diamondburned/gotk4/pkg/gtk/v4"7+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
8 )8 )
9 9
10 var (10 var (
M pkg/webkit/shortcuts.go +3 -3
@@ -5,9 +5,9 @@ import (
55 "strings"
66
77 "github.com/bnema/dumber/internal/logging"
8- "github.com/diamondburned/gotk4/pkg/gdk/v4"
9- "github.com/diamondburned/gotk4/pkg/glib/v2"
10- "github.com/diamondburned/gotk4/pkg/gtk/v4"
8+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
9+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
10+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
1111 )
1212
1313 // WindowShortcuts manages keyboard shortcuts for a window
@@ -5,9 +5,9 @@ import (
5 "strings"5 "strings"
6 6
7 "github.com/bnema/dumber/internal/logging"7 "github.com/bnema/dumber/internal/logging"
8- "github.com/diamondburned/gotk4/pkg/gdk/v4"8+ gdk "github.com/diamondburned/gotk4/pkg/gdk/v4"
9- "github.com/diamondburned/gotk4/pkg/glib/v2"9+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
10- "github.com/diamondburned/gotk4/pkg/gtk/v4"10+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
11 )11 )
12 12
13 // WindowShortcuts manages keyboard shortcuts for a window13 // WindowShortcuts manages keyboard shortcuts for a window
M pkg/webkit/tls_handler.go +2 -2
@@ -12,8 +12,8 @@ import (
1212 "github.com/bnema/dumber/internal/config"
1313 "github.com/bnema/dumber/internal/db"
1414 "github.com/bnema/dumber/internal/logging"
15- "github.com/diamondburned/gotk4/pkg/gio/v2"
16- "github.com/diamondburned/gotk4/pkg/gtk/v4"
15+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
16+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
1717 )
1818
1919 // TLSCertificateInfo holds information about a TLS certificate for display
@@ -12,8 +12,8 @@ import (
12 "github.com/bnema/dumber/internal/config"12 "github.com/bnema/dumber/internal/config"
13 "github.com/bnema/dumber/internal/db"13 "github.com/bnema/dumber/internal/db"
14 "github.com/bnema/dumber/internal/logging"14 "github.com/bnema/dumber/internal/logging"
15- "github.com/diamondburned/gotk4/pkg/gio/v2"15+ gio "github.com/diamondburned/gotk4/pkg/gio/v2"
16- "github.com/diamondburned/gotk4/pkg/gtk/v4"16+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
17 )17 )
18 18
19 // TLSCertificateInfo holds information about a TLS certificate for display19 // TLSCertificateInfo holds information about a TLS certificate for display
M pkg/webkit/webview_related.go +2 -2
@@ -26,8 +26,8 @@ import (
2626 "github.com/bnema/dumber/internal/logging"
2727 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
2828 coreglib "github.com/diamondburned/gotk4/pkg/core/glib"
29- "github.com/diamondburned/gotk4/pkg/glib/v2"
30- "github.com/diamondburned/gotk4/pkg/gtk/v4"
29+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
30+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
3131 )
3232
3333 // NewBareRelatedWebView creates a bare gotk4 WebView with the related-view property set
@@ -26,8 +26,8 @@ import (
26 "github.com/bnema/dumber/internal/logging"26 "github.com/bnema/dumber/internal/logging"
27 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"27 webkit "github.com/diamondburned/gotk4-webkitgtk/pkg/webkit/v6"
28 coreglib "github.com/diamondburned/gotk4/pkg/core/glib"28 coreglib "github.com/diamondburned/gotk4/pkg/core/glib"
29- "github.com/diamondburned/gotk4/pkg/glib/v2"29+ glib "github.com/diamondburned/gotk4/pkg/glib/v2"
30- "github.com/diamondburned/gotk4/pkg/gtk/v4"30+ gtk "github.com/diamondburned/gotk4/pkg/gtk/v4"
31 )31 )
32 32
33 // NewBareRelatedWebView creates a bare gotk4 WebView with the related-view property set33 // NewBareRelatedWebView creates a bare gotk4 WebView with the related-view property set

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