orhun / otree

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

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.

Coming soon

New actions:

  • ShowHelp: Popup a widget to show available keys.
  • SearchItems: Search items.
  • SearchContent: Search contents.

New features:

  • Add foot widget to show help message and version.
  • Syntax highlight in data block.
  • Mouse select in data block.
  • Clipboard support: Copy selected item field or content to clipboard.

About

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

License:MIT License


Languages

Language:Rust 100.0%