Page 1 of 1

Very important folders

Posted: 09 Feb 2012 15:17
by LittleBiG
I have some very important folders which are highlighted. I would like to show them constantly in my minitree. Putting them after minimizing the tree would be my solution. Is there a way to fill highlighted folders to minitree automatically? By script maybe? I checked the help file, but I didn't find any way to get the list of highlighted (or favorite and so on) folders as a pipe list.

Re: Very important folders

Posted: 09 Feb 2012 15:24
by admin
Not automatically, but the loadtree command allows you to add any (number of) folders to the Mini Tree by a single click.

Re: Very important folders

Posted: 09 Feb 2012 16:02
by LittleBiG
Sorry to hear. So when I highlighted a folder, I should modify my script manually. :cry:

Wouldn't "minimize tree" function be improved instead? For example it wouldn't delete highlighted folder. But it is a wish... I try to persuade you because minitree, coloring (highlighted folders, boxed branches) is real strengthness of XYplorer, I can look through my tree in a moment due to these visual aids. I attach a proof.

Re: Very important folders

Posted: 09 Feb 2012 17:39
by admin
I just remembered that you can get a list of highlighted folders by using get() with "list_hilitefolder". A scripter will be able to make you a script (which you can put in a user button) that will minimize your tree and then add all highlighted folders. :D

Re: Very important folders

Posted: 09 Feb 2012 18:02
by LittleBiG
admin wrote:you can get a list of highlighted folders by using get() with "list_hilitefolder"


That was the missing link, thank you!

Re: Very important folders

Posted: 10 Feb 2012 10:29
by admin
I noticed that the colors are returned as well, which makes it a bit tricky. Next version you can do it with a one-liner:

Code: Select all

::loadtree getinfo("list_hilitefolder", "|", "f");
8)

Re: Very important folders

Posted: 10 Feb 2012 11:06
by LittleBiG
admin wrote:Next version you can do it with a one-liner
Big thanks! Really 8)