Update search locations when modifying main doc.
Show / after filename in file tree if directory.