Page 1 of 1

Tree: Expand selected folder, but not subfolders

Posted: 13 Sep 2018 13:14
by leinad
When tons of files accumulate on my desktop, I sometimes start creating folders like 2018-09-12 and 2018-09-13, and when ready I go through each of them and rename the folders to "2018-09-12 - solar", "2018-09-13 - solar, weather".

I'd like, in the Tree view, to be able to right click the Desktop folder and select "Expansion -> Only single level", so that when "2018-09-13 - solar, weather" contains a lot of sub-folders, like a git-repository, it doesn't expand those. That way I can click each folder in Desktop in order to check what's in there and name it appropriately.

Re: Tree: Expand selected folder, but not subfolders

Posted: 13 Sep 2018 14:08
by highend
Why don't you use a locked tree (or locked mini tree)? A single click on the desktop's "+" sign to expand the first level and the sublevels don't expand by itself then...

And you can spare yourself a bit of work by loading (if you use the locked mini tree) the belonging folders from the desktop into the mini tree with this one liner:

Code: Select all

loadtree(replace(formatlist(listfolder("%desktop%", , 2), "f", , "####-##-##*", "f"), "%desktopreal%", "Desktop"));