// SPDX-License-Identifier: AGPL-3.0-or-later package web import "strings" // OverlayHelp is the keyboard map panel. templ OverlayHelp() {
keys
j k
move cursor down / up
enter
open row under cursor
g g / G
first / last row
/
focus the filter
g h g t
go home / tree
g c g r
go commits / refs
b
{ "switch" } ref (branches, tags)
: f
go to: section, ref, file, repo
y
permalink: ref becomes the full sha
s t c r
repo sections (when shown)
m g m
merge requests (when shown)
d u x
diff: split / unified / collapse all
n
merge request: next note in the diff
esc
close panel
} // OverlayRefs is the ref switcher. It exists only inside a repository. templ OverlayRefs(l Layout) { if l.Ref != "" {

branches { itoa(len(l.Heads)) }

    for _, r := range l.Heads { @refItem(r) }

tags { itoa(len(l.Tags)) }

    for _, r := range l.Tags { @refItem(r) }
} } templ refItem(r RefItem) {
  • { r.Name }
  • } // OverlayCmd is the ":" command line: one filterable list mixing sections, // refs, files of this directory and repos. templ OverlayCmd(items []CmdItem) {
    }