Yesterday, I wrote my first Python 3 script which is a helper script to visualize sizes (number of lines) of Org-mode headings: org-du
I borrowed a different workflow from two GNU tools: Usually, the output of du (disk usage) is piped into xdu to visualize disk usage of directories.
org-du mimics the output format of
du in order to be able to use
xdu to do the visualizing and navigational part.
Applying the script on the README.org file and piping the output into
xdu looks like this:
org-du.py README.org | xdu
You can navigate through the output via mouse, navigate back in the tree by clicking the leftmost column, and quit via
The script also accepts multiple Org-mode files as arguments. This way, you can get a brief overview of all of your Org data.
org-du works on any platform which runs Python 3. However,
xdu is available on UNIX/GNU/Linux only. You can do the
org-du part via
org-du my-file.org > my-org-du-output.log on a Windows host, copy the result file to a GNU/Linux host and do the visualization part with
xdu < my-org-du-output.log as well. This way, you can separate the data analysis and the data visualization part.
You can install
sudo pip install org-du or clone from https://github.com/novoid/org-du
Have fun with this tool!