pazz / urwidtrees

tree widgets for urwid
GNU General Public License v3.0
52 stars 18 forks source link

Tree view with cwd as root #44

Closed yochem closed 6 years ago

yochem commented 6 years ago

Hey, sorry for the question but I've been going through the examples today and I can't find a way to change the code so the root of the tree will be the current working directory. Is this possible to do?

pazz commented 6 years ago

You mean in example 4? I think youd need to adjust the DirectoryTree class so that its method parent_position returns None for the directory you want as root.

yochem commented 6 years ago

thanks! This worked great.