detached c104571

refactor: drop unused consumed flag and group Mod constants in the facade

commit
c104571058ee42bf86ccf5ee847109200e107dc9
author
brice · · 2026-10-01 17:53 UTC
parent
8b015e3
signature
GPG VerifiedCD88F9E564E0102646FB6077A1A07C7C7C3E349D · arch-gpg Verified for the committer email
3 files · +2 -5
M internal/ui/runtime.go +0 -2
@@ -43,7 +43,6 @@ type runtime struct {
4343 pasteID uint64
4444 ime edit.IME
4545 redraw bool
46- consumed bool // the last committed build handled input events
4746 inputRects []Rect
4847 inputNil, inputStaged bool
4948 }
@@ -176,7 +175,6 @@ func (r *runtime) Build(view func(*Frame)) bool {
176175 if len(events) > 0 {
177176 r.redraw = true
178177 }
179- r.consumed = len(events) > 0
180178 // Release every losing editor before enabling the winner: the IME port
181179 // represents one seat, not one port per editor. Never depend on map order.
182180 for id, editor := range r.edits {
@@ -43,7 +43,6 @@ type runtime struct {
43 pasteID uint6443 pasteID uint64
44 ime edit.IME44 ime edit.IME
45 redraw bool45 redraw bool
46- consumed bool // the last committed build handled input events
47 inputRects []Rect46 inputRects []Rect
48 inputNil, inputStaged bool47 inputNil, inputStaged bool
49 }48 }
@@ -176,7 +175,6 @@ func (r *runtime) Build(view func(*Frame)) bool {
176 if len(events) > 0 {175 if len(events) > 0 {
177 r.redraw = true176 r.redraw = true
178 }177 }
179- r.consumed = len(events) > 0
180 // Release every losing editor before enabling the winner: the IME port178 // Release every losing editor before enabling the winner: the IME port
181 // represents one seat, not one port per editor. Never depend on map order.179 // represents one seat, not one port per editor. Never depend on map order.
182 for id, editor := range r.edits {180 for id, editor := range r.edits {
M nefergui.go +2 -0
@@ -111,4 +111,6 @@ const (
111111
112112 ModShift = ui.ModShift
113113 ModCtrl = ui.ModCtrl
114+ ModAlt = ui.ModAlt
115+ ModSuper = ui.ModSuper
114116 )
@@ -111,4 +111,6 @@ const (
111 111
112 ModShift = ui.ModShift112 ModShift = ui.ModShift
113 ModCtrl = ui.ModCtrl113 ModCtrl = ui.ModCtrl
114+ ModAlt = ui.ModAlt
115+ ModSuper = ui.ModSuper
114 )116 )
M renderer.go +0 -3
@@ -56,9 +56,6 @@ const (
5656 CursorPointer = ui.CursorPointer
5757 CursorText = ui.CursorText
5858 CursorNotAllowed = ui.CursorNotAllowed
59-
60- ModAlt = ui.ModAlt
61- ModSuper = ui.ModSuper
6259 )
6360
6461 // NewRenderer opens the GPU named by cfg.MainDevice and loads fonts and
@@ -56,9 +56,6 @@ const (
56 CursorPointer = ui.CursorPointer56 CursorPointer = ui.CursorPointer
57 CursorText = ui.CursorText57 CursorText = ui.CursorText
58 CursorNotAllowed = ui.CursorNotAllowed58 CursorNotAllowed = ui.CursorNotAllowed
59-
60- ModAlt = ui.ModAlt
61- ModSuper = ui.ModSuper
62 )59 )
63 60
64 // NewRenderer opens the GPU named by cfg.MainDevice and loads fonts and61 // NewRenderer opens the GPU named by cfg.MainDevice and loads fonts and

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 1

Tags 12

↑↓ moveenter openesc close