runtime_config.go RawHistoryFolder

1package entity
2
3// EngineHardwareDecodingMode controls engine-facing video hardware acceleration.
4type EngineHardwareDecodingMode string
5
6const (
7	EngineHardwareDecodingAuto    EngineHardwareDecodingMode = "auto"
8	EngineHardwareDecodingForce   EngineHardwareDecodingMode = "force"
9	EngineHardwareDecodingDisable EngineHardwareDecodingMode = "disable"
10)
11
12// EngineWebContentSettingsPayload is the engine-facing runtime view of web
13// content settings that can be applied to newly-created or existing webviews.
14type EngineWebContentSettingsPayload struct {
15	SansFont                  string
16	SerifFont                 string
17	MonospaceFont             string
18	DefaultFontSize           int
19	EnableDevTools            bool
20	CaptureConsole            bool
21	DrawCompositingIndicators bool
22	HardwareDecoding          EngineHardwareDecodingMode
23	AutoCopyOnSelection       bool
24}
25
26// EngineSettingsPayload is the engine-facing boundary view of runtime config.
27// Add fields here only when an engine needs to react to them at runtime.
28type EngineSettingsPayload struct {
29	DefaultUIScale float64
30	WebContent     EngineWebContentSettingsPayload
31}
32
33// EngineSettingsUpdate carries a runtime config change to the engine.
34type EngineSettingsUpdate struct {
35	Settings EngineSettingsPayload
36}
37
38type RuntimeConfigSnapshot struct {
39	EngineSettings EngineSettingsPayload
40	UI             RuntimeUIConfig
41}
42
43type RuntimeUIConfig struct {
44	DefaultUIScale      float64
45	SidebarWidth        int
46	Appearance          AppearanceConfig
47	Workspace           WorkspaceConfig
48	Session             SessionConfig
49	Clipboard           RuntimeClipboardConfig
50	SearchShortcuts     map[string]RuntimeSearchShortcut
51	DefaultSearchEngine string
52	Omnibox             RuntimeOmniboxConfig
53	Update              RuntimeUpdateConfig
54	Downloads           RuntimeDownloadsConfig
55}
56
57type RuntimeClipboardConfig struct {
58	AutoCopyOnSelection bool
59}
60
61type RuntimeSearchShortcut struct {
62	URL         string
63	Description string
64}
65
66type RuntimeOmniboxConfig struct {
67	Style             string
68	InitialBehavior   OmniboxInitialBehavior
69	MaxHistoryDays    int
70	AutoOpenOnNewPane bool
71}
72
73type RuntimeUpdateConfig struct {
74	EnableOnStartup     bool
75	AutoDownload        bool
76	NotifyOnNewSettings bool
77}
78
79type RuntimeDownloadsConfig struct {
80	Path string
81}

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