newly created folders added to mini tree?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
sfwood
Posts: 125
Joined: 10 Jan 2012 21:07

newly created folders added to mini tree?

Post by sfwood »

Is there a setting or tweak I am missing that will make newly created folders be automatically added to the mini tree? If no, this would be helpful :-).

bdeshi
Posts: 4256
Joined: 12 Mar 2014 17:27
Location: Asteroid B-612
Contact:

Re: newly created folders added to mini tree?

Post by bdeshi »

Well, it's possible. But I fear the minitree will begin looking like a miniwoods after a while...

So instead of going for automatically adding new folders to the MT, I suggest you add this little script to catalog, toolbar button or a UDC.
After creating a new folder (and renaming it), trigger the script, to add only those folders that you want to be in the tree.

Code: Select all

::loadtree <curitem>, 1;
That said here's an automatic a semi-automatic, if complex, solution:
  • First open Menu > Tools > Keyboard shortcuts , and remove the keyboard shortcut you used to use for creating New Folders.
  • Now set up a new UDC > Run Script command (Menu > User > Manage commands) like this:

    Code: Select all

    Caption: New folder to Minitree
     Script: $newdir = new("New Folder", dir, , r); loadtree $newdir, 1;
    Click on "Assign Keyboard Shortcut" and assign "the keyboard shortcut you used to use for creating new folders".
From now on, you can either use that shortcut or Menu > User > Run Script > New folder to mini tree to create new folders, and they will be added to the minitree.
(NOT if you use default methods of new folder creation)
Icon Names | Onyx | Undocumented Commands | xypcre
[ this user is asleep ]

Post Reply