Xplr allows you explore tree-based file formats as an interactive TUI tree. This currently supports JSON, YAML, and TOML files.
Can be installed using Go 1.23+ via:
go install github.com/crosleyzack/xplr@latest
Xplr can take in data by providing a data file:
or by passing it as the first argument:
xplr "{\"foo\": \"bar\"}"
or finally via stdin:
Xplr will search for a configuration toml file at:
- $XPLR_CONFIG
- $XDG_CONFIG_HOME/xplr/config.toml
Configuration options include:
# colors
ShapeColor = "#fffffa"
SelectedForegroundColor = "#fffffb"
SelectedBackgroundColor = "#fffffc"
UnselectedForegroundColor = "#fffffd"
HelpColor = "#fffffe"
# keys
BottomKeys = ["bottom"]
TopKeys = ["top"]
DownKeys = ["down","j"]
UpKeys = ["up","k"]
CollapseKeys = ["tab","enter"]
HelpKeys = ["?"]
QuitKeys = ["esc","q"]