RSS

 
  Tree Interface

Clean Tree

Description

This macro removes empty branches from the Tree.

It is often the case that not all branches in the Tree are actually populated with any items (e.g. the "Labels" tree). Upon building the tree for the current document or project, this macro will automatically remove those empty branches, thus cleaning the tree.

Of course, these branches will not be removed permanently. Whenever you rebuild the tree, and the respective branches are no longer empty, they will show up as usual.

Installation

  • Save the file CleanTree.edt in %b\Local\
  • If %b\Local\Events\BuildTreeAfter.edt does not exist:
    • create it (an empty file)
  • Add the following line to %b\Local\Events\BuildTreeAfter.edt:
    Exe("%b\Local\CleanTree.edt");
    

Download

CleanTree.edt

Macro contributed by Robert <w.m.lgmx.net>

  Tree Interface