treemand config

Manage treemand’s optional YAML configuration file without opening it manually.

treemand config demo

Commands

treemand config view               # show merged config + file path
treemand config validate           # check for errors or unknown keys
treemand config validate --strict  # treat warnings as errors
treemand config set <key> <value>  # write a value to the config file
treemand config init               # create a commented default config
treemand config init --force       # overwrite an existing config
treemand config path               # print the config file path
treemand config edit               # open config in $EDITOR

Config file locations

treemand searches for the config file in this order:

  1. $XDG_CONFIG_HOME/treemand/config.yaml (typically ~/.config/treemand/)
  2. $HOME/.treemand/config.yaml

Precedence

CLI flags > environment variables (TREEMAND_*) > config file > built-in defaults

Available keys

KeyTypeDefaultDescription
iconsstringunicodeIcon preset: unicode, ascii, nerd
desc_line_lengthint80Max description chars before truncation
stub_thresholdint150Subcommand count before switching to stub nodes
tree_stylestringdefaultTUI tree style: default, columns, compact, graph
no_colorboolfalseDisable colored output
depthint3Max tree depth (default 3; -1 = unlimited)
no_cacheboolfalseDisable discovery cache
strategiesstringhelpComma-separated discovery strategies
colors.basehex#FFFFFFRoot command color
colors.subcmdhex#5EA4F5Subcommand color
colors.flaghex#50FA7BFlag color (fallback)
colors.selectedhex#00BFFFTUI selection background

Example config

# ~/.config/treemand/config.yaml
icons: nerd
depth: 5
stub_threshold: 100

colors:
  subcmd: "#5EA4F5"
  flag: "#50FA7B"
  selected: "#00BFFF"

Run treemand config validate after editing to catch typos before they affect behavior.