detached e55f218

fix(context-menu): satisfy lint for CEF menu stubs

commit
e55f218fec80a916bccf35c05d055b284909efaf
author
brice · · 2026-04-14 07:15 UTC
committer
brice · · 2026-04-14 12:06 UTC
parent
3e836ca
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
1 file · +58 -56
M internal/infrastructure/cef/context_menu_run_context_menu_test.go +58 -56
@@ -13,92 +13,94 @@ import (
1313
1414 type stubMenuModel struct{}
1515
16-func (stubMenuModel) IsSubMenu() bool { return false }
17-func (stubMenuModel) Clear() int32 { panic("unexpected call") }
18-func (stubMenuModel) GetCount() int { return 1 }
19-func (stubMenuModel) AddSeparator() int32 { panic("unexpected call") }
20-func (stubMenuModel) AddItem(commandID int32, label string) int32 { panic("unexpected call") }
21-func (stubMenuModel) AddCheckItem(commandID int32, label string) int32 { panic("unexpected call") }
22-func (stubMenuModel) AddRadioItem(commandID int32, label string, groupID int32) int32 {
16+func (stubMenuModel) IsSubMenu() bool { return false }
17+func (stubMenuModel) Clear() int32 { panic("unexpected call") }
18+func (stubMenuModel) GetCount() int { return 1 }
19+func (stubMenuModel) AddSeparator() int32 { panic("unexpected call") }
20+func (stubMenuModel) AddItem(_ int32, _ string) int32 { panic("unexpected call") }
21+func (stubMenuModel) AddCheckItem(_ int32, _ string) int32 {
2322 panic("unexpected call")
2423 }
25-func (stubMenuModel) AddSubMenu(commandID int32, label string) purecef.MenuModel {
24+func (stubMenuModel) AddRadioItem(_ int32, _ string, _ int32) int32 {
2625 panic("unexpected call")
2726 }
28-func (stubMenuModel) InsertSeparatorAt(index int) int32 { panic("unexpected call") }
29-func (stubMenuModel) InsertItemAt(index int, commandID int32, label string) int32 {
27+func (stubMenuModel) AddSubMenu(_ int32, _ string) purecef.MenuModel {
3028 panic("unexpected call")
3129 }
32-func (stubMenuModel) InsertCheckItemAt(index int, commandID int32, label string) int32 {
30+func (stubMenuModel) InsertSeparatorAt(_ int) int32 { panic("unexpected call") }
31+func (stubMenuModel) InsertItemAt(_ int, _ int32, _ string) int32 {
3332 panic("unexpected call")
3433 }
35-func (stubMenuModel) InsertRadioItemAt(index int, commandID int32, label string, groupID int32) int32 {
34+func (stubMenuModel) InsertCheckItemAt(_ int, _ int32, _ string) int32 {
3635 panic("unexpected call")
3736 }
38-func (stubMenuModel) InsertSubMenuAt(index int, commandID int32, label string) purecef.MenuModel {
37+func (stubMenuModel) InsertRadioItemAt(_ int, _ int32, _ string, _ int32) int32 {
3938 panic("unexpected call")
4039 }
41-func (stubMenuModel) Remove(commandID int32) int32 { panic("unexpected call") }
42-func (stubMenuModel) RemoveAt(index int) int32 { panic("unexpected call") }
43-func (stubMenuModel) GetIndexOf(commandID int32) int32 { panic("unexpected call") }
44-func (stubMenuModel) GetCommandIDAt(index int) int32 { return 101 }
45-func (stubMenuModel) SetCommandIDAt(index int, commandID int32) int32 { panic("unexpected call") }
46-func (stubMenuModel) GetLabel(commandID int32) string { panic("unexpected call") }
47-func (stubMenuModel) GetLabelAt(index int) string { return "Copy" }
48-func (stubMenuModel) SetLabel(commandID int32, label string) int32 { panic("unexpected call") }
49-func (stubMenuModel) SetLabelAt(index int, label string) int32 { panic("unexpected call") }
50-func (stubMenuModel) GetType(commandID int32) purecef.MenuItemType { panic("unexpected call") }
51-func (stubMenuModel) GetTypeAt(index int) purecef.MenuItemType {
40+func (stubMenuModel) InsertSubMenuAt(_ int, _ int32, _ string) purecef.MenuModel {
41+ panic("unexpected call")
42+}
43+func (stubMenuModel) Remove(_ int32) int32 { panic("unexpected call") }
44+func (stubMenuModel) RemoveAt(_ int) int32 { panic("unexpected call") }
45+func (stubMenuModel) GetIndexOf(_ int32) int32 { panic("unexpected call") }
46+func (stubMenuModel) GetCommandIDAt(_ int) int32 { return 101 }
47+func (stubMenuModel) SetCommandIDAt(_ int, _ int32) int32 { panic("unexpected call") }
48+func (stubMenuModel) GetLabel(_ int32) string { panic("unexpected call") }
49+func (stubMenuModel) GetLabelAt(_ int) string { return "Copy" }
50+func (stubMenuModel) SetLabel(_ int32, _ string) int32 { panic("unexpected call") }
51+func (stubMenuModel) SetLabelAt(_ int, _ string) int32 { panic("unexpected call") }
52+func (stubMenuModel) GetType(_ int32) purecef.MenuItemType { panic("unexpected call") }
53+func (stubMenuModel) GetTypeAt(_ int) purecef.MenuItemType {
5254 return purecef.MenuItemTypeMenuitemtypeCommand
5355 }
54-func (stubMenuModel) GetGroupID(commandID int32) int32 { panic("unexpected call") }
55-func (stubMenuModel) GetGroupIDAt(index int) int32 { panic("unexpected call") }
56-func (stubMenuModel) SetGroupID(commandID int32, groupID int32) int32 { panic("unexpected call") }
57-func (stubMenuModel) SetGroupIDAt(index int, groupID int32) int32 { panic("unexpected call") }
58-func (stubMenuModel) GetSubMenu(commandID int32) purecef.MenuModel { panic("unexpected call") }
59-func (stubMenuModel) GetSubMenuAt(index int) purecef.MenuModel { panic("unexpected call") }
60-func (stubMenuModel) IsVisible(commandID int32) bool { panic("unexpected call") }
61-func (stubMenuModel) IsVisibleAt(index int) bool { panic("unexpected call") }
62-func (stubMenuModel) SetVisible(commandID int32, visible int32) int32 { panic("unexpected call") }
63-func (stubMenuModel) SetVisibleAt(index int, visible int32) int32 { panic("unexpected call") }
64-func (stubMenuModel) IsEnabled(commandID int32) bool { panic("unexpected call") }
65-func (stubMenuModel) IsEnabledAt(index int) bool { panic("unexpected call") }
66-func (stubMenuModel) SetEnabled(commandID int32, enabled int32) int32 { panic("unexpected call") }
67-func (stubMenuModel) SetEnabledAt(index int, enabled int32) int32 { panic("unexpected call") }
68-func (stubMenuModel) IsChecked(commandID int32) bool { panic("unexpected call") }
69-func (stubMenuModel) IsCheckedAt(index int) bool { panic("unexpected call") }
70-func (stubMenuModel) SetChecked(commandID int32, checked int32) int32 { panic("unexpected call") }
71-func (stubMenuModel) SetCheckedAt(index int, checked int32) int32 { panic("unexpected call") }
72-func (stubMenuModel) HasAccelerator(commandID int32) bool { panic("unexpected call") }
73-func (stubMenuModel) HasAcceleratorAt(index int) bool { panic("unexpected call") }
74-func (stubMenuModel) SetAccelerator(commandID int32, keyCode int32, shiftPressed int32, ctrlPressed int32, altPressed int32) int32 {
56+func (stubMenuModel) GetGroupID(_ int32) int32 { panic("unexpected call") }
57+func (stubMenuModel) GetGroupIDAt(_ int) int32 { panic("unexpected call") }
58+func (stubMenuModel) SetGroupID(_, _ int32) int32 { panic("unexpected call") }
59+func (stubMenuModel) SetGroupIDAt(_ int, _ int32) int32 { panic("unexpected call") }
60+func (stubMenuModel) GetSubMenu(_ int32) purecef.MenuModel { panic("unexpected call") }
61+func (stubMenuModel) GetSubMenuAt(_ int) purecef.MenuModel { panic("unexpected call") }
62+func (stubMenuModel) IsVisible(_ int32) bool { panic("unexpected call") }
63+func (stubMenuModel) IsVisibleAt(_ int) bool { panic("unexpected call") }
64+func (stubMenuModel) SetVisible(_, _ int32) int32 { panic("unexpected call") }
65+func (stubMenuModel) SetVisibleAt(_ int, _ int32) int32 { panic("unexpected call") }
66+func (stubMenuModel) IsEnabled(_ int32) bool { panic("unexpected call") }
67+func (stubMenuModel) IsEnabledAt(_ int) bool { panic("unexpected call") }
68+func (stubMenuModel) SetEnabled(_, _ int32) int32 { panic("unexpected call") }
69+func (stubMenuModel) SetEnabledAt(_ int, _ int32) int32 { panic("unexpected call") }
70+func (stubMenuModel) IsChecked(_ int32) bool { panic("unexpected call") }
71+func (stubMenuModel) IsCheckedAt(_ int) bool { panic("unexpected call") }
72+func (stubMenuModel) SetChecked(_, _ int32) int32 { panic("unexpected call") }
73+func (stubMenuModel) SetCheckedAt(_ int, _ int32) int32 { panic("unexpected call") }
74+func (stubMenuModel) HasAccelerator(_ int32) bool { panic("unexpected call") }
75+func (stubMenuModel) HasAcceleratorAt(_ int) bool { panic("unexpected call") }
76+func (stubMenuModel) SetAccelerator(_, _, _, _, _ int32) int32 {
7577 panic("unexpected call")
7678 }
77-func (stubMenuModel) SetAcceleratorAt(index int, keyCode int32, shiftPressed int32, ctrlPressed int32, altPressed int32) int32 {
79+func (stubMenuModel) SetAcceleratorAt(_ int, _, _, _, _ int32) int32 {
7880 panic("unexpected call")
7981 }
80-func (stubMenuModel) RemoveAccelerator(commandID int32) int32 { panic("unexpected call") }
81-func (stubMenuModel) RemoveAcceleratorAt(index int) int32 { panic("unexpected call") }
82-func (stubMenuModel) GetAccelerator(commandID int32, keyCode unsafe.Pointer, shiftPressed unsafe.Pointer, ctrlPressed unsafe.Pointer, altPressed unsafe.Pointer) int32 {
82+func (stubMenuModel) RemoveAccelerator(_ int32) int32 { panic("unexpected call") }
83+func (stubMenuModel) RemoveAcceleratorAt(_ int) int32 { panic("unexpected call") }
84+func (stubMenuModel) GetAccelerator(_ int32, _, _, _, _ unsafe.Pointer) int32 {
8385 panic("unexpected call")
8486 }
85-func (stubMenuModel) GetAcceleratorAt(index int, keyCode unsafe.Pointer, shiftPressed unsafe.Pointer, ctrlPressed unsafe.Pointer, altPressed unsafe.Pointer) int32 {
87+func (stubMenuModel) GetAcceleratorAt(_ int, _, _, _, _ unsafe.Pointer) int32 {
8688 panic("unexpected call")
8789 }
88-func (stubMenuModel) SetColor(commandID int32, colorType purecef.MenuColorType, color uintptr) int32 {
90+func (stubMenuModel) SetColor(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
8991 panic("unexpected call")
9092 }
91-func (stubMenuModel) SetColorAt(index int32, colorType purecef.MenuColorType, color uintptr) int32 {
93+func (stubMenuModel) SetColorAt(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
9294 panic("unexpected call")
9395 }
94-func (stubMenuModel) GetColor(commandID int32, colorType purecef.MenuColorType, color uintptr) int32 {
96+func (stubMenuModel) GetColor(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
9597 panic("unexpected call")
9698 }
97-func (stubMenuModel) GetColorAt(index int32, colorType purecef.MenuColorType, color uintptr) int32 {
99+func (stubMenuModel) GetColorAt(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
98100 panic("unexpected call")
99101 }
100-func (stubMenuModel) SetFontList(commandID int32, fontList string) int32 { panic("unexpected call") }
101-func (stubMenuModel) SetFontListAt(index int32, fontList string) int32 { panic("unexpected call") }
102+func (stubMenuModel) SetFontList(_ int32, _ string) int32 { panic("unexpected call") }
103+func (stubMenuModel) SetFontListAt(_ int32, _ string) int32 { panic("unexpected call") }
102104
103105 type stubContextMenuBuilder struct{ items []port.MenuItem }
104106
@@ -13,92 +13,94 @@ import (
13 13
14 type stubMenuModel struct{}14 type stubMenuModel struct{}
15 15
16-func (stubMenuModel) IsSubMenu() bool { return false }16+func (stubMenuModel) IsSubMenu() bool { return false }
17-func (stubMenuModel) Clear() int32 { panic("unexpected call") }17+func (stubMenuModel) Clear() int32 { panic("unexpected call") }
18-func (stubMenuModel) GetCount() int { return 1 }18+func (stubMenuModel) GetCount() int { return 1 }
19-func (stubMenuModel) AddSeparator() int32 { panic("unexpected call") }19+func (stubMenuModel) AddSeparator() int32 { panic("unexpected call") }
20-func (stubMenuModel) AddItem(commandID int32, label string) int32 { panic("unexpected call") }20+func (stubMenuModel) AddItem(_ int32, _ string) int32 { panic("unexpected call") }
21-func (stubMenuModel) AddCheckItem(commandID int32, label string) int32 { panic("unexpected call") }21+func (stubMenuModel) AddCheckItem(_ int32, _ string) int32 {
22-func (stubMenuModel) AddRadioItem(commandID int32, label string, groupID int32) int32 {
23 panic("unexpected call")22 panic("unexpected call")
24 }23 }
25-func (stubMenuModel) AddSubMenu(commandID int32, label string) purecef.MenuModel {24+func (stubMenuModel) AddRadioItem(_ int32, _ string, _ int32) int32 {
26 panic("unexpected call")25 panic("unexpected call")
27 }26 }
28-func (stubMenuModel) InsertSeparatorAt(index int) int32 { panic("unexpected call") }27+func (stubMenuModel) AddSubMenu(_ int32, _ string) purecef.MenuModel {
29-func (stubMenuModel) InsertItemAt(index int, commandID int32, label string) int32 {
30 panic("unexpected call")28 panic("unexpected call")
31 }29 }
32-func (stubMenuModel) InsertCheckItemAt(index int, commandID int32, label string) int32 {30+func (stubMenuModel) InsertSeparatorAt(_ int) int32 { panic("unexpected call") }
31+func (stubMenuModel) InsertItemAt(_ int, _ int32, _ string) int32 {
33 panic("unexpected call")32 panic("unexpected call")
34 }33 }
35-func (stubMenuModel) InsertRadioItemAt(index int, commandID int32, label string, groupID int32) int32 {34+func (stubMenuModel) InsertCheckItemAt(_ int, _ int32, _ string) int32 {
36 panic("unexpected call")35 panic("unexpected call")
37 }36 }
38-func (stubMenuModel) InsertSubMenuAt(index int, commandID int32, label string) purecef.MenuModel {37+func (stubMenuModel) InsertRadioItemAt(_ int, _ int32, _ string, _ int32) int32 {
39 panic("unexpected call")38 panic("unexpected call")
40 }39 }
41-func (stubMenuModel) Remove(commandID int32) int32 { panic("unexpected call") }40+func (stubMenuModel) InsertSubMenuAt(_ int, _ int32, _ string) purecef.MenuModel {
42-func (stubMenuModel) RemoveAt(index int) int32 { panic("unexpected call") }41+ panic("unexpected call")
43-func (stubMenuModel) GetIndexOf(commandID int32) int32 { panic("unexpected call") }42+}
44-func (stubMenuModel) GetCommandIDAt(index int) int32 { return 101 }43+func (stubMenuModel) Remove(_ int32) int32 { panic("unexpected call") }
45-func (stubMenuModel) SetCommandIDAt(index int, commandID int32) int32 { panic("unexpected call") }44+func (stubMenuModel) RemoveAt(_ int) int32 { panic("unexpected call") }
46-func (stubMenuModel) GetLabel(commandID int32) string { panic("unexpected call") }45+func (stubMenuModel) GetIndexOf(_ int32) int32 { panic("unexpected call") }
47-func (stubMenuModel) GetLabelAt(index int) string { return "Copy" }46+func (stubMenuModel) GetCommandIDAt(_ int) int32 { return 101 }
48-func (stubMenuModel) SetLabel(commandID int32, label string) int32 { panic("unexpected call") }47+func (stubMenuModel) SetCommandIDAt(_ int, _ int32) int32 { panic("unexpected call") }
49-func (stubMenuModel) SetLabelAt(index int, label string) int32 { panic("unexpected call") }48+func (stubMenuModel) GetLabel(_ int32) string { panic("unexpected call") }
50-func (stubMenuModel) GetType(commandID int32) purecef.MenuItemType { panic("unexpected call") }49+func (stubMenuModel) GetLabelAt(_ int) string { return "Copy" }
51-func (stubMenuModel) GetTypeAt(index int) purecef.MenuItemType {50+func (stubMenuModel) SetLabel(_ int32, _ string) int32 { panic("unexpected call") }
51+func (stubMenuModel) SetLabelAt(_ int, _ string) int32 { panic("unexpected call") }
52+func (stubMenuModel) GetType(_ int32) purecef.MenuItemType { panic("unexpected call") }
53+func (stubMenuModel) GetTypeAt(_ int) purecef.MenuItemType {
52 return purecef.MenuItemTypeMenuitemtypeCommand54 return purecef.MenuItemTypeMenuitemtypeCommand
53 }55 }
54-func (stubMenuModel) GetGroupID(commandID int32) int32 { panic("unexpected call") }56+func (stubMenuModel) GetGroupID(_ int32) int32 { panic("unexpected call") }
55-func (stubMenuModel) GetGroupIDAt(index int) int32 { panic("unexpected call") }57+func (stubMenuModel) GetGroupIDAt(_ int) int32 { panic("unexpected call") }
56-func (stubMenuModel) SetGroupID(commandID int32, groupID int32) int32 { panic("unexpected call") }58+func (stubMenuModel) SetGroupID(_, _ int32) int32 { panic("unexpected call") }
57-func (stubMenuModel) SetGroupIDAt(index int, groupID int32) int32 { panic("unexpected call") }59+func (stubMenuModel) SetGroupIDAt(_ int, _ int32) int32 { panic("unexpected call") }
58-func (stubMenuModel) GetSubMenu(commandID int32) purecef.MenuModel { panic("unexpected call") }60+func (stubMenuModel) GetSubMenu(_ int32) purecef.MenuModel { panic("unexpected call") }
59-func (stubMenuModel) GetSubMenuAt(index int) purecef.MenuModel { panic("unexpected call") }61+func (stubMenuModel) GetSubMenuAt(_ int) purecef.MenuModel { panic("unexpected call") }
60-func (stubMenuModel) IsVisible(commandID int32) bool { panic("unexpected call") }62+func (stubMenuModel) IsVisible(_ int32) bool { panic("unexpected call") }
61-func (stubMenuModel) IsVisibleAt(index int) bool { panic("unexpected call") }63+func (stubMenuModel) IsVisibleAt(_ int) bool { panic("unexpected call") }
62-func (stubMenuModel) SetVisible(commandID int32, visible int32) int32 { panic("unexpected call") }64+func (stubMenuModel) SetVisible(_, _ int32) int32 { panic("unexpected call") }
63-func (stubMenuModel) SetVisibleAt(index int, visible int32) int32 { panic("unexpected call") }65+func (stubMenuModel) SetVisibleAt(_ int, _ int32) int32 { panic("unexpected call") }
64-func (stubMenuModel) IsEnabled(commandID int32) bool { panic("unexpected call") }66+func (stubMenuModel) IsEnabled(_ int32) bool { panic("unexpected call") }
65-func (stubMenuModel) IsEnabledAt(index int) bool { panic("unexpected call") }67+func (stubMenuModel) IsEnabledAt(_ int) bool { panic("unexpected call") }
66-func (stubMenuModel) SetEnabled(commandID int32, enabled int32) int32 { panic("unexpected call") }68+func (stubMenuModel) SetEnabled(_, _ int32) int32 { panic("unexpected call") }
67-func (stubMenuModel) SetEnabledAt(index int, enabled int32) int32 { panic("unexpected call") }69+func (stubMenuModel) SetEnabledAt(_ int, _ int32) int32 { panic("unexpected call") }
68-func (stubMenuModel) IsChecked(commandID int32) bool { panic("unexpected call") }70+func (stubMenuModel) IsChecked(_ int32) bool { panic("unexpected call") }
69-func (stubMenuModel) IsCheckedAt(index int) bool { panic("unexpected call") }71+func (stubMenuModel) IsCheckedAt(_ int) bool { panic("unexpected call") }
70-func (stubMenuModel) SetChecked(commandID int32, checked int32) int32 { panic("unexpected call") }72+func (stubMenuModel) SetChecked(_, _ int32) int32 { panic("unexpected call") }
71-func (stubMenuModel) SetCheckedAt(index int, checked int32) int32 { panic("unexpected call") }73+func (stubMenuModel) SetCheckedAt(_ int, _ int32) int32 { panic("unexpected call") }
72-func (stubMenuModel) HasAccelerator(commandID int32) bool { panic("unexpected call") }74+func (stubMenuModel) HasAccelerator(_ int32) bool { panic("unexpected call") }
73-func (stubMenuModel) HasAcceleratorAt(index int) bool { panic("unexpected call") }75+func (stubMenuModel) HasAcceleratorAt(_ int) bool { panic("unexpected call") }
74-func (stubMenuModel) SetAccelerator(commandID int32, keyCode int32, shiftPressed int32, ctrlPressed int32, altPressed int32) int32 {76+func (stubMenuModel) SetAccelerator(_, _, _, _, _ int32) int32 {
75 panic("unexpected call")77 panic("unexpected call")
76 }78 }
77-func (stubMenuModel) SetAcceleratorAt(index int, keyCode int32, shiftPressed int32, ctrlPressed int32, altPressed int32) int32 {79+func (stubMenuModel) SetAcceleratorAt(_ int, _, _, _, _ int32) int32 {
78 panic("unexpected call")80 panic("unexpected call")
79 }81 }
80-func (stubMenuModel) RemoveAccelerator(commandID int32) int32 { panic("unexpected call") }82+func (stubMenuModel) RemoveAccelerator(_ int32) int32 { panic("unexpected call") }
81-func (stubMenuModel) RemoveAcceleratorAt(index int) int32 { panic("unexpected call") }83+func (stubMenuModel) RemoveAcceleratorAt(_ int) int32 { panic("unexpected call") }
82-func (stubMenuModel) GetAccelerator(commandID int32, keyCode unsafe.Pointer, shiftPressed unsafe.Pointer, ctrlPressed unsafe.Pointer, altPressed unsafe.Pointer) int32 {84+func (stubMenuModel) GetAccelerator(_ int32, _, _, _, _ unsafe.Pointer) int32 {
83 panic("unexpected call")85 panic("unexpected call")
84 }86 }
85-func (stubMenuModel) GetAcceleratorAt(index int, keyCode unsafe.Pointer, shiftPressed unsafe.Pointer, ctrlPressed unsafe.Pointer, altPressed unsafe.Pointer) int32 {87+func (stubMenuModel) GetAcceleratorAt(_ int, _, _, _, _ unsafe.Pointer) int32 {
86 panic("unexpected call")88 panic("unexpected call")
87 }89 }
88-func (stubMenuModel) SetColor(commandID int32, colorType purecef.MenuColorType, color uintptr) int32 {90+func (stubMenuModel) SetColor(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
89 panic("unexpected call")91 panic("unexpected call")
90 }92 }
91-func (stubMenuModel) SetColorAt(index int32, colorType purecef.MenuColorType, color uintptr) int32 {93+func (stubMenuModel) SetColorAt(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
92 panic("unexpected call")94 panic("unexpected call")
93 }95 }
94-func (stubMenuModel) GetColor(commandID int32, colorType purecef.MenuColorType, color uintptr) int32 {96+func (stubMenuModel) GetColor(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
95 panic("unexpected call")97 panic("unexpected call")
96 }98 }
97-func (stubMenuModel) GetColorAt(index int32, colorType purecef.MenuColorType, color uintptr) int32 {99+func (stubMenuModel) GetColorAt(_ int32, _ purecef.MenuColorType, _ uintptr) int32 {
98 panic("unexpected call")100 panic("unexpected call")
99 }101 }
100-func (stubMenuModel) SetFontList(commandID int32, fontList string) int32 { panic("unexpected call") }102+func (stubMenuModel) SetFontList(_ int32, _ string) int32 { panic("unexpected call") }
101-func (stubMenuModel) SetFontListAt(index int32, fontList string) int32 { panic("unexpected call") }103+func (stubMenuModel) SetFontListAt(_ int32, _ string) int32 { panic("unexpected call") }
102 104
103 type stubContextMenuBuilder struct{ items []port.MenuItem }105 type stubContextMenuBuilder struct{ items []port.MenuItem }
104 106

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