Browse and fix findings in the terminal
tx0 ui shows the files, the findings, the source around each one, the rule and the fix, with keys to apply a fix, suppress a finding or open the file. After a save, only the changed file is checked again.
tx0 ui, the findings in your terminal
tx0 ui is for working through findings without leaving the terminal: pick one, read why it matters, then fix it, suppress it with a reason or open it in your editor. Each action is a labelled button, and the colon key lists them all by name.
recorded Overview
The parts of the screen
Eight parts, numbered on the screen and named below. On a first run, a short note in the middle explains them; it is closed here.
- What was found, when the files were last checked, and that tx0 watches them for changes.
- Chips for the grouping and the filters. A click opens a menu; the key in brackets changes it at once.
- The files with findings, with a count for each level. Pick one.
- The findings of that file by line, with a legend for the marks.
- The selected finding in plain words: what it is, why it matters and what its fix does.
- The source around the finding, with its span and message.
- The rule explained, the fix as a diff, and details such as the finding’s id.
- What can be done now, as buttons. Click one or press the key in brackets; [:] lists every action.
Keys and options
This is what tx0 ui --help prints. ? lists every key inside the interface. The findings can be grouped by file, rule, language, level or tier, or into new and existing ones.
usage: tx0 ui [PATH...] [--root DIR] [--tier T]
Browse the findings of the tree in the terminal and act on them. The view follows the
files: a save shows its findings at once. PATHs limit it to some files and directories.
--root DIR the root of the tree, as for `tx0 check`
--tier T use tier T instead of the one in tx0.toml
The buttons at the bottom act on the selected finding, the chips at the top filter and
group the findings, and : (or ctrl-p) opens a palette of every action, searched by name.
Each button and chip shows its key in brackets; a click does the same.
keys:
j k, down up next and previous row tab, shift-tab next and previous pane
n N next and previous finding g G, home end first and last row
enter, l open the selected row esc, h back towards the left
/ search the rows o group by file, rule,
L lowest level shown language, level, tier,
d new findings only, or all or new and known
x clear the search and filters t next tier
f apply the fix s suppress, with a reason
e open in $EDITOR at the line y copy the finding's id
r check again, reread tx0.toml 1 2 3 rule, fix and details
: ctrl-p all actions, by name ? all keys
q quit mouse click, select, scroll
A fix that may change behaviour asks before it is applied. A change of tx0.toml or of the
baseline is read at once. Where the system cannot watch the files, tx0 ui looks for
changes every 2 seconds and says so; TX0_UI_POLL=1 asks for that, for file systems
where watching does not work. With --timings, frame and update times and the peak
memory are printed when the interface ends.
Colors follow NO_COLOR, COLORTERM and TERM. A finding is new when it is neither in the
baseline nor in the last check that `tx0 check --delta` recorded.