Skip to content

Capture Output

Pipe mode reads stdin and opens the result.

Terminal window
ls -la | sivtr
cargo build 2>&1 | sivtr
rg "TODO" . | sivtr

Use pipe mode when:

  • the command already exists in your shell history;
  • you want normal shell behavior for pipelines and redirection;
  • you do not need sivtr to know the original command.

For commands that write important output to stderr, redirect it:

Terminal window
cargo test 2>&1 | sivtr

Run mode executes the command through sivtr:

Terminal window
sivtr run cargo test
sivtr run git status --short

Use run mode when:

  • you want sivtr to capture the command directly;
  • you want the exit status printed before browsing;
  • you prefer not to manage shell redirection manually.

Run mode captures combined output. If the command produces no output, sivtr exits after reporting that nothing was captured.

After shell integration is installed, sivtr import opens the current session log:

Terminal window
sivtr import

This is useful when you have been working normally and later want to browse the accumulated session as a single workspace.

Use caseBest command
Inspect one command’s outputcommand 2>&1 | sivtr
Run a command through the toolsivtr run command
Browse everything recorded in this shellsivtr import
Copy one recent command block without opening TUIsivtr copy out
Search saved capturessivtr history search "query"