Page 1 of 1
Automatically shrinked minitree
Posted: 08 Feb 2012 11:10
by LittleBiG
I really am a minitree fan, so I'm always wondering ways to improve it. After some time minitree grows too big. I can minimize it, so I can periodically "restart" the minitree. It would be very nice feature, if the the least used branches disappeared automatically. For example if I didn't use a folder in 30 days, it could be deleted from minitree. So I would have a minitree with almost constant size, always containing the most important, most used folders.
Re: Automatically shrinked minitree
Posted: 08 Feb 2012 16:26
by j_c_hallgren
While this seems on surface to be practical, the amount of overhead needed to support it makes it impractical, I suspect.
Re: Automatically shrinked minitree
Posted: 09 Feb 2012 09:47
by admin
j_c_hallgren wrote:While this seems on surface to be practical, the amount of overhead needed to support it makes it impractical, I suspect.
Yep, exactly.
Re: Automatically shrinked minitree
Posted: 12 Feb 2012 12:41
by chavlji
I think it would be a very useful feature.
You should write some "last opened" tag for each item in treeview. Then at loading tree (at program startup), when you build a tree, you'd say :
if ( branch.lastOpened - now <= branchTimeout ) then addBranch() else doNothing
for each branch that is read from ini file.