v0.4.0 0b9cfda

ci.yml RawHistoryFolder

1name: CI
2
3on:
4  push:
5    branches: [main]
6    paths:
7      - '**.go'
8      - 'go.mod'
9      - 'go.sum'
10      - '.golangci.yml'
11      - '.github/workflows/**'
12  pull_request:
13    paths:
14      - '**.go'
15      - 'go.mod'
16      - 'go.sum'
17      - '.golangci.yml'
18      - '.github/workflows/**'
19
20permissions:
21  contents: read
22
23jobs:
24  ci:
25    uses: bnema/gh-actions/.github/workflows/go-ci.yml@main
26    with:
27      go-version: stable
28      test-flags: '-race -v ./...'
29
30  quality:
31    needs: ci
32    runs-on: ubuntu-latest
33    steps:
34      - uses: actions/checkout@v7
35      - uses: actions/setup-go@v6
36        with:
37          go-version: stable
38      - name: Check production import direction
39        shell: bash
40        run: |
41          if go list -f '{{join .Imports "\n"}}' . | grep -q '/ansi'; then
42            echo 'the VT root must not import the ANSI package'
43            exit 1
44          fi
45          if ! go list -f '{{join .Imports "\n"}}' ./ansi | grep -q '/core'; then
46            echo 'the ANSI package must consume the core model'
47            exit 1
48          fi
49      - name: VT fuzz smoke
50        run: go test . -run '^$' -fuzz FuzzVTInputDoesNotPanic -fuzztime=10s
51      - name: ANSI fuzz smoke
52        run: go test . -run '^$' -fuzz FuzzANSIRenderingDoesNotPanic -fuzztime=10s
53      - name: VTH3 fuzz smoke
54        run: go test . -run '^$' -fuzz FuzzHistoryPreflightMatchesUnmarshal -fuzztime=10s
55      - name: Benchmark smoke
56        run: go test ./... -run '^$' -bench='(VT|History|Snapshot|ANSI)' -benchmem -benchtime=1x
57      - name: External consumer smoke
58        run: scripts/consumer-smoke.sh

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