12

I know I can use tree to show the nested content of a directory. Alas, its output is hardly beautiful as I want to include it in a documentation. So eye-candy is a requirement.

So I was wondering if there is an easy way to generate a more beautiful representation of a directory's tree structure. I wouldn't mind a solution that generates awesome images with fancy configurable colors.

2
  • You could abuse Gephi with a little scripting. Commented Dec 3, 2012 at 13:58
  • Did you try tree with unicode symbols, in a unicode terminal? Commented Jan 10, 2013 at 13:13

6 Answers 6

9

I developed a gem for this purpose, you list a set of paths with any tool like ag or find and pipe it to the command dirtree and it'll generate an HTML page that visualize the directory structure as a tree

Features

  • zooming
  • panning
  • collapse/expand a node
  • it's SVG so you can search inside the browser as normal

Project on github at blazeeboy/dirtree.

0
5

You can try:

 tree | zenity --list --title "Title" --text "Text" --column "Files"
1
  • Excellent reply @goodluck! Knew about tree but not zenity. Thanks! Commented Dec 18, 2023 at 2:52
2

Mindmapping software (such as freemind, or freeplane) have a nice directory layout capability built-in. And you can open/close subdir trees as needed to only display the ones you want. And easily customize colors and fonts or line style, either automatically (starting from one or several nodes) or one by one. And can encircle somes in clouds. And link between some. And add comments. And can easily copy one or several branch and paste into text. Try them ^^

2
  • This does not indicate how to get a directory structure in your favourite mindmapping tool. Commented Dec 4, 2012 at 14:33
  • 1
    It's not too hard to find: either in the inline help, or, in Freemind for example: File - Import - Folder structure (I wasn't then in front of my computer, sorry for that omission) Commented Dec 4, 2012 at 15:22
1

Under Gnome, you could try baobab

enter image description here

0

I just saw gource and thought it was gorgeous. It is the most beautiful tree visualizer I have seen so far but it's alive. You would have to take snapshots of it.

"Software projects are displayed by Gource as an animated tree with the root directory of the project at its centre. Directories appear as branches with files as leaves. Developers can be seen working on the tree at the times they contributed to the project."

http://gource.io/

-1

If you don't like the output of tree, don't use it.

Use a directory listing from a file-open or file-close dialog, and make a screenshot.

1
  • Valid approach, but not as much eye candy as I would have liked. Commented Jan 10, 2013 at 18:23

You must log in to answer this question.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.