4 ms·
The other day, I found myself in need of visualising a tree of paths, like this: /one/two /one/three/four /one/three/five /six I ended up converting i
by nathell 3y ago
The other day, I found myself in need of visualising a tree of paths, like this:
/one/two
/one/three/four
/one/three/five
/six
I ended up converting it to a JSON with a one-off Python script, and then using fx for the viewing. It worked very well! Thank you for the tool!
(Incidentally, I’ve been writing my own viewer [0] to satisfy my original need more straightforwardly, but that’s still in very early stages.)
[0]: https://github.com/nathell/treeviewer https://github.com/nathell/treeviewer
- js2 3y agoAs in filesystem paths? Are you aware of `tree`? https://en.wikipedia.org/wiki/Tree_(command) https://en.wikipedia.org/wiki/Tree_(command)
- nathell 3y agoNot necessarily filesystem paths (in my case, the paths correspond to RocksDB keys). And I’d like to be able to fold/unfold subtrees, search within node names, and call arbitrary commands for a given path in the tree, from within a TUI. So no, `tree` won’t cut it.