Favorite Tree Views Menu (or submenu)

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
sethcat
Posts: 5
Joined: 13 Sep 2010 03:50

Favorite Tree Views Menu (or submenu)

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

j_c_hallgren
XY Blog Master
Posts: 5826
Joined: 02 Jan 2006 19:34
Location: So. Chatham MA/Clearwater FL
Contact:

Re: Favorite Tree Views Menu (or submenu)

Post 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.
Still spending WAY TOO much time here! But it's such a pleasure helping XY be a treasure!
(XP on laptop with touchpad and thus NO mouse!) Using latest beta vers when possible.

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Favorite Tree Views Menu (or submenu)

Post 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.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Favorite Tree Views Menu (or submenu)

Post 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.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

admin
Site Admin
Posts: 66350
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Favorite Tree Views Menu (or submenu)

Post 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
To see the attached files, you need to log into the forum.

admin
Site Admin
Posts: 66350
Joined: 22 May 2004 16:48
Location: Win8.1, Win10, Win11, all @100%
Contact:

Re: Favorite Tree Views Menu (or submenu)

Post 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")) . ";";

sethcat
Posts: 5
Joined: 13 Sep 2010 03:50

Re: Favorite Tree Views Menu (or submenu)

Post 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

sethcat
Posts: 5
Joined: 13 Sep 2010 03:50

Re: Favorite Tree Views Menu (or submenu)

Post 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

SkyFrontier
Posts: 2341
Joined: 04 Jan 2010 14:27
Location: Pasárgada (eu vou!)

Re: Favorite Tree Views Menu (or submenu)

Post 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.
New User's Ref. Guide and Quick Setup Guide can help a bit! Check XYplorer Resources Index for many useful links!
Want a new XYperience? XY MOD - surfYnXoard
-coz' the aim of computing is to free us to LIVE...

Post Reply