otree Plugin
Interactive TUI to view JSON, YAML, and TOML as a navigable tree. Faster than scrolling raw text for deeply nested documents.
Installation
cargo install otree
# or
brew install otree
Download binaries from GitHub Releases.
Basic Usage
# Open a file
otree config.json
# Pipe structured data
curl -s https://api.example.com/data | otree
# YAML or TOML
otree docker-compose.yml
otree Cargo.toml
Key Bindings
j/kor↓/↑— Move cursorh/lor←/→— Collapse/expand nodeEnter— Toggle expand/collapse/— Searchq— Quit
Usage Examples
- "Show me this JSON response as a tree"
- "Navigate the nested keys in package.json"
- "Inspect this YAML config interactively"
SuperCLI
sc otree _ _ config.json
sc plugins learn otree