Tree: Expand selected folder, but not subfolders

Features wanted...
Post Reply
leinad
Posts: 47
Joined: 17 Jun 2010 09:08

Tree: Expand selected folder, but not subfolders

Post 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.

highend
Posts: 14620
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: Tree: Expand selected folder, but not subfolders

Post 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"));
One of my scripts helped you out? Please donate via Paypal

Post Reply