| indent2tree - Makes TAB-indented text into ascii tree chart |
indent2tree - Makes TAB-indented text into ascii tree chart
Set -v, -h, -c, and -l options' values to ASCII line-art chars.
Output path-like strings per line, instead of tree-like diagram.
If SEP is specified, take it as path separator
instead of the default slash (/) char.
Input: lines with leading TAB chars representing the depth in the tree. Multiline records are supported by terminating lines (all but the last one) by backslash.
Output: tree diagramm with (ascii or unicode) drawing chars. Set custom drawing chars by -v, -h, -c, and -l options.
Input data must have at least one "root" item, ie. text starting at the beginning of the line, without preceeding TAB.
Tree depth needs to be denoted by TAB chars, not any other whitespace. Pre-format it if you need to.
Since there can be multiple root items and root items do not have ancestry lines, a multiline root item can be confused with multiple items all having zero children (except maybe the last one). If it matters to you, put a common parent above the tree by inserting a root item to the 0th line and indenting all other lines by 1 level.
Multiline items are not supported in --paths mode.
| indent2tree - Makes TAB-indented text into ascii tree chart |