Automatically figure out project files from includes (LaTeX)

The sidebar is pretty nice, but it would be perfect if it could be made to display just the included TeX files and graphics of the current project. Not *all* the tex files and graphics though; just the ones called by the TeX files. This could be easily done by checking the "\include" and "\input" lines scattered in the whole project (recursively, if possible!!)