v0.33.0 62a09f5

context_options.go RawHistoryFolder

1package webkit
2
3import "github.com/bnema/dumber/internal/application/port"
4
5// cookiePolicy controls cookie acceptance behavior for the WebKit NetworkSession.
6// This is a webkit-internal type; values match port.CookiePolicy string values.
7type cookiePolicy = port.CookiePolicy
8
9const (
10	cookiePolicyAlways       cookiePolicy = port.CookiePolicyAlways
11	cookiePolicyNoThirdParty cookiePolicy = port.CookiePolicyNoThirdParty
12	cookiePolicyNever        cookiePolicy = port.CookiePolicyNever
13)
14
15// webKitContextOptions configures WebKitContext creation.
16// This is a webkit-specific options struct that extends EngineOptions with
17// WebKit-specific fields (e.g. ITPEnabled).
18type webKitContextOptions struct {
19	// DataDir is the directory for persistent data (cookies, storage, etc.).
20	DataDir string
21
22	// CacheDir is the directory for cache data.
23	CacheDir string
24
25	// CookiePolicy controls cookie acceptance behavior.
26	// Empty value means runtime defaults are used.
27	CookiePolicy cookiePolicy
28
29	// ITPEnabled controls Intelligent Tracking Prevention for NetworkSession.
30	// False means ITP remains disabled unless enabled explicitly.
31	ITPEnabled bool
32
33	// WebProcessMemory configures memory pressure for web processes.
34	// nil means use WebKit defaults.
35	WebProcessMemory *port.MemoryPressureConfig
36
37	// NetworkProcessMemory configures memory pressure for the network process.
38	// nil means use WebKit defaults.
39	NetworkProcessMemory *port.MemoryPressureConfig
40}
41
42// IsWebProcessMemoryConfigured returns true if web process memory settings are configured.
43func (o *webKitContextOptions) IsWebProcessMemoryConfigured() bool {
44	if o == nil || o.WebProcessMemory == nil {
45		return false
46	}
47	return o.WebProcessMemory.IsConfigured()
48}
49
50// IsNetworkProcessMemoryConfigured returns true if network process memory settings are configured.
51func (o *webKitContextOptions) IsNetworkProcessMemoryConfigured() bool {
52	if o == nil || o.NetworkProcessMemory == nil {
53		return false
54	}
55	return o.NetworkProcessMemory.IsConfigured()
56}

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