Quickstart
This quickstart covers the main workflow: capture terminal output, browse it, copy a selected range, and then reuse recent command blocks.
1. Pipe output into the browser
Section titled “1. Pipe output into the browser”cargo test 2>&1 | sivtrThe TUI opens with the combined output. Use:
j/kto move line by line;Ctrl-D/Ctrl-Uto move by half pages;gg/Gto jump to the top or bottom;/panicto search;n/Nfor next or previous match;qto quit.
2. Select and copy
Section titled “2. Select and copy”In the browser:
- Move to the start of the text.
- Press
Vfor line-wise selection. - Move to the end of the range.
- Press
y.
The selected text is copied to the system clipboard.
For a rectangular selection, press Ctrl-V instead of V.
3. Wrap a command
Section titled “3. Wrap a command”Use sivtr run when you want sivtr to execute the command and capture stdout/stderr:
sivtr run cargo testsivtr run python scripts/check.pysivtr prints the process exit status, then opens the captured output.
4. Enable command-block copy
Section titled “4. Enable command-block copy”Install shell integration once:
sivtr init powershellRestart the shell, run a few commands, then copy recent blocks:
sivtr copysivtr copy outsivtr copy cmd 2sivtr copy 2..4 --printSelectors are relative to the newest block. 1 means the latest command block, 2 means the one before it, and 2..4 means a recent range.
5. Copy Codex output
Section titled “5. Copy Codex output”From inside a project directory with Codex sessions:
sivtr copy codex outsivtr copy codex insivtr copy codex tool --regex errorsivtr copy codex all --lines 1:40sivtr finds the newest Codex session whose working directory matches the current project.