v0.7.0 36c429d

doc.go RawHistoryFolder

1// Package ansi emits ANSI terminal output from the frontend-neutral
2// github.com/bnema/vev-vt/core model.
3//
4// The package owns output planning, ANSI encoding, and a transactional renderer
5// shadow. Renderers consume the read-only CellSource contract. Cell, Style, RGB,
6// Frame, CellSource, Damage, and RuneWidth are aliases of the core package.
7//
8// [New] preserves the historical truecolor behavior. A renderer created by
9// [NewWithColorProfile] projects every color-bearing style field to its chosen
10// [ColorProfile]. [ColorProfileTrueColor] preserves RGB and indexed colors
11// exactly as earlier releases did. [ColorProfileANSI256] converts RGB colors to
12// the nearest fixed xterm color in indices 16 through 255 while preserving
13// valid indexed colors. [ColorProfileANSI16] preserves indices
14// 0 through 15, converts other foreground and background colors to the nearest
15// canonical ANSI color, and omits explicit underline colors.
16// [ColorProfileMonochrome] omits foreground, background, and underline colors
17// while preserving non-color attributes.
18//
19// RGB conversion minimizes squared distance in sRGB space and chooses the lower
20// palette index on ties. ANSI-256 conversion compares the 6x6x6 color cube with
21// the 24-step gray ramp; it does not generate theme-dependent indices 0 through
22// 15. ANSI-16 output uses basic 30-37, 40-47, 90-97, and 100-107 SGR codes.
23//
24// Constrained profiles omit indexed values outside 0 through 255. Color
25// projection is identical for full and incremental draws. Renderer
26// configuration is fixed for its lifetime; construct a new Renderer when the
27// output target changes.
28package ansi

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 2

Tags 13

↑↓ moveenter openesc close