Interactive TUI

Navigate findings with vim-style keyboard shortcuts

Redactyl includes a powerful terminal user interface (TUI) for exploring and managing findings interactively.

Starting the TUI

redactyl scan  # TUI is the default mode

Keyboard Shortcuts

KeyAction
j / Move down
k / Move up
gGo to top
GGo to bottom
EnterExpand/collapse finding
TabSwitch panels

Filtering

KeyAction
/Search findings
fFilter by severity
FClear filters
sSort findings

Actions

KeyAction
oOpen file in editor
bBaseline finding
iIgnore finding
eExport findings
rRefresh scan

View

KeyAction
pToggle preview panel
cToggle context lines
dDiff view
?Show help
qQuit

Severity Colors

Findings are color-coded by severity:

  • Critical - Red background
  • High - Red text
  • Medium - Yellow text
  • Low - Gray text

Preview Panel

Press Enter on a finding to see:

  • Full file path with line numbers
  • Syntax-highlighted code context
  • Secret value (partially redacted)
  • Detector information
  • Suggested remediation

Baseline Workflow

  1. Scan your project: redactyl scan
  2. Review findings in the TUI
  3. Press b to baseline known/acceptable secrets
  4. Baseline is saved to .redactyl-baseline.json
  5. Future scans will skip baselined findings

Export Options

Press e to export findings:

  • JSON - Machine-readable format
  • SARIF - GitHub Code Scanning format
  • CSV - Spreadsheet format
  • Markdown - Documentation format

Virtual File Extraction

For secrets found in archives or containers:

  1. Select the finding
  2. Press x to extract
  3. File is extracted to a temp directory
  4. Opens in your default editor

Environment Variables

Customize TUI behavior:

# Set default editor
export EDITOR=code

# Disable colors
export NO_COLOR=1

# Set terminal width
export COLUMNS=120