TREEIFY(1)
π NAME π
hey bestie, meet treeify(1) β the manual page for treeify 3.2.0, aka the little script that looks at your sad flat list of hierarchical ids and goes "not on my watch" π
π DESCRIPTION π
okay so here's the tea β β treeify identifies a column of text that's holding hierarchical ids, and then treeifies that column. That's it, that's the job.
Here's the whole vibe: this script inspects a text file and attempts to find a vertically left-aligned column of text containing identifiers with multiple components β think stuff like "Assets:US:Bank:Checking" β and replaces those with a treelike structure rendered in ASCII. It inserts new empty lines wherever it needs to, so the tree actually, y'know, looks like a tree π³
π¨ real talk, no cap: if your paths have spaces in them, this will not work. Space is used as a delimiter to detect the end of a column. (Good news though β you can customize the delimiter with an option. we love a configurable queen.)
And here's the synopsis, exactly as it comes:
usage: treeify [-h] [-o OUTPUT] [-r PATTERN] [-d DELIMITER] [-s SPLIT]
[-F] [-A] [--filler FILLER] [input]
π positional arguments π
inputβ name of the file to process. no file? no problem, it defaults tostdinβ¨
β¨ options β¨
-h,--helpβ show this help message and exit. classic. iconic. the "help me bestie" button π«Ά-o,--outputOUTPUT β name of the file to write. if you don't say anything, it writes tostdout(default:stdout)-r,--patternPATTERN β the pattern for repeatable components. default is"(Assets|Liabilities|Equity|Income|Expenses)(:[A-Z][A-Za-z0-9- _']*)*"β yeah she's long, she's thorough, she's the main character π₯-d,--delimiterDELIMITER β delimiter pattern to detect the end of a column of text. pro tip from the page itself: if your patterns contain strings, you might wanna set this to a longer string, like' {2,}'(default:"[ ]+")-s,--splitSPLIT β the pattern that splits things into components (default:":")-F,--filenamesβ use a pattern and split that are suitable for filenames π-A,--loose-accountsβ use a pattern and split that are suitable for loose account names πΈ--fillerFILLER β the filler string used for the new lines that get inserted for formatting. it's literally just the padding so everything lines up pretty πΈ
that's the whole page, bestie, you're officially certified πβ¨ go forth and make your columns gorgeous.
π this little love letter was brought to you bytreeify 3.2.0, datedMarch 2026β catch you in the next manual page, mwah ππ¦
π¦ where this page comes from
- ubuntu resolute: beancount 3.2.0-2build1 Β· GPL-2.0-only
- ubuntu stonking: beancount 3.2.0-2build1 Β· GPL-2.0-only
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms