Show HN: Xplr CLI Tree View

4 days ago 1

xplr


License Release CI

Xplr allows you explore tree-based file formats as an interactive TUI tree. This currently supports JSON, YAML, and TOML files.

example

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:

  1. $XPLR_CONFIG
  2. $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"]
Read Entire Article