Page 1 of 1

Favorite Tree Views Menu (or submenu)

Posted: 13 Sep 2010 04:31
by sethcat
I spend a lot of time working to get the tree as I want it. Then, when I move to a different task, I have to do it again. I have discovered the 'Make Mini-tree from Folders' trick using the catalog, but even that seems a little bothersome. What I want is my own collection of favorite mini-trees, from which I could select the one that suits my purposes at the moment. I can select my favorite files and favorite folders, which is great, but each of those is too limited in scope. Developing such a collection would take some work, of course, but once done, it's done for good.

Is this idea appealing? Is it implementable? Is there an equally useful method that I haven't discovered yet? Please help. I am 71 years old, and it is getting harder and harder to learn complicated new tricks. Thanks in advance.

Re: Favorite Tree Views Menu (or submenu)

Posted: 13 Sep 2010 04:49
by j_c_hallgren
Hi and welcome to the XY forums!

Are you using a version that supports scripting? Because with that, you can create a set of entries in the Catalog, each being a "::loadtree" command with all the desired folders for that mini-tree.
This can be created via "Insert as new item" using "Current mini-tree" as basis.

That's one solution...there may be others but it's what comes to mind first.

Re: Favorite Tree Views Menu (or submenu)

Posted: 13 Sep 2010 06:06
by SkyFrontier
If you are into scripting, mr. SethCat, there's a few links you may like to visit:

Update Mini Tree with new and renamed folders

Mini Tree - Set a branch from the main tree

This link leads to a file package which contains a specialized MiniTrees script, which may be of interest.

Re: Favorite Tree Views Menu (or submenu)

Posted: 13 Sep 2010 06:37
by SkyFrontier
-for a similar approach, easier than any of the previous, I'd go with Session Manager.
If you find any difficulties implementing such proposed solutions, please leave a note.
There are a few hints on XYTour regarding scripting, mini tree and catalog which you may find useful, too.

Re: Favorite Tree Views Menu (or submenu)

Posted: 13 Sep 2010 09:05
by admin
I would suggest a User Button.
- Add a new User Button to the toolbar
- right-click the button
- Copy the following snippet (undocumented feature, hey!) to the clipboard and then paste it "into the button" (how to do this: right-click the grey area in the button's Edit dialog and select paste; see screenshot below)
- the snippet adds three dummy Mini Trees; it should be easy to edit them to your taste; ask if in doubt.

Code: Select all

Snip: CTB 1
  XYplorer 9.50.0002, 13.09.2010 09:00:10
Name
  Various Mini Trees
Icon
  :minitree
ScriptL
  "Just two drives|:minitree" loadtree "C:|D:";
  "Just scripts|:minitree" loadtree "<xydata>\scripts";
  "Tree number three|:minitree" loadtree "%programfiles%|%temp%|<xypath>";
  
  
ScriptR
  
FireClick
  1

Re: Favorite Tree Views Menu (or submenu)

Posted: 13 Sep 2010 09:13
by admin
PS: use the following line in the address bar to get the definition of the current Mini Tree:

Code: Select all

::text get("tree");
Or this deluxe way ready to paste as new line into the user button script:

Code: Select all

::text quote("Caption|:minitree") . " loadtree " . quote(get("tree")) . ";";

Re: Favorite Tree Views Menu (or submenu)

Posted: 14 Sep 2010 03:08
by sethcat
Thank you all for your suggestions. They are most helpful.

I was starting to think about scripts, along with user buttons, but was dreading the climb up yet another learning curve. With your kind assistance, it will be a day hike instead.

Seth

Re: Favorite Tree Views Menu (or submenu)

Posted: 15 Sep 2010 07:47
by sethcat
This is more postscript (pun) than reply, but I am happy and want to share.

Using scripts and user-defined button, I now have buttons -- wearing suitable icons -- on my toolbar. Each, with only a mouse-click, produces a special-purpose mini-tree.

Color me satisfied.

Seth

Re: Favorite Tree Views Menu (or submenu)

Posted: 15 Sep 2010 13:41
by SkyFrontier
Glad to hear that, mr. SethCat.
Again - feel free to ask for help.
And since scripting served you well, I'd like to suggest taking a closer look at the Scripts Library. There you'll probably find some other (very!) useful stuff that will certainly improve your experience and (impressively) decrease your time spent on tedious tasks regarding file management via XYplorer.