Home

Awesome

OTree - Object Tree TUI Viewer

screenshot

A command line tool to view objects (JSON/YAML/TOML) in TUI tree widget.

Install

Download binary files from release page.

You can also build it from source (require cargo installed):

cargo install --git https://github.com/fioncat/otree

Arch Linux (AUR)

You can install otree from the AUR with using an AUR helper.

paru -S otree

macOS and Linux (Homebrew)

You can install otree using Homebrew.

brew install otree

Usage

Open a JSON/YAML/TOML file in TUI tree viewer:

otree /path/to/file.json
otree /path/to/file.yaml
otree /path/to/file.toml

For more command usage, please run otree --help.

You can configure TUI keys, colors, and more in ~/.config/otree.toml, the default configuration is here.

For all available actions and their default key bindings, please refer to: All Available Actions.

For how to configure TUI colors, please refer to: Colors Document.

Features

If you have any great ideas, please create an issue, thanks!

Thanks

I created this tool to better view those super deep YAML files of Kubernetes while jnv only supports JSON.

This is based on the amazing TUI framework ratatui and its tree widget tui-tree-widget.