Q: scroll specific tree-item into view?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
autocart
Posts: 1390
Joined: 26 Sep 2013 15:22

Q: scroll specific tree-item into view?

Post by autocart »

Scroll specific tree-item into view?
Is it already possible by relatively easy means? (out-of-the-box or scripting does not matter)
I could not find it but before I wrap my brain around the possibilities of a scripting-construct-workaround, I thought I ask whether I overlooked something or not.
Thx in advance.

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

Re: Q: scroll specific tree-item into view?

Post by admin »

Use the scrollbar? :mrgreen:

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

Re: Q: scroll specific tree-item into view?

Post by admin »

Well, I began to like the idea and added something to the next beta:

Code: Select all

    + Scripting got a new command.
      Name: ShowInTree
      Action: Show a path in the tree.
      Syntax: showintree [path]
        path: [optional] the path to show.
              If missing the current path is shown (moved into view).
      Remarks:
        - Showing here can just mean to scroll the node into view. If the node 
          is already visible in the view then the command does nothing.
        - Showing can also mean that the tree is expanded to the path if 
          necessary and possible.
        - The path is never selected (browsed) by this command.
        - If the path does not exist the existing part of it (if any) is shown.
      Examples:
         showintree "Desktop";
         showintree "T:\Fotos\2015\";
         showintree "paper:echo"; //yet unofficial but working
Useful! :tup:


Online
eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: Q: scroll specific tree-item into view?

Post by eil »

Code: Select all

       showintree "paper:echo"; //yet unofficial but working
does this mean paper-folders will be appearing in tree?
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Q: scroll specific tree-item into view?

Post by admin »

In the Mini Tree, yes. This works already now, but it needs some polishing to be officially released.

Online
eil
Posts: 1888
Joined: 13 Jan 2011 19:44

Re: Q: scroll specific tree-item into view?

Post by eil »

strange i tried it in my current 15.80.0204 and don't see them(i use miniTree always)
Win 7 SP1 x64 100% 1366x768|1900x1080

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

Re: Q: scroll specific tree-item into view?

Post by admin »

After using

Code: Select all

showintree "paper:[name]";
you should see that folder. Well, if not: It's not an official feature anyway. :)


autocart
Posts: 1390
Joined: 26 Sep 2013 15:22

Re: Q: scroll specific tree-item into view?

Post by autocart »

So far, although not official yet, die paper folder only is shown in the tree (if added by SC).
Any virtual subfolder(-links) inside the paper folder are not shown in the tree (as sub-nodes of the paper-folder).

Is this planned to come, or will the paper folder never have any sub-nodes in the tree?
I think this would be cool.

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

Re: Q: scroll specific tree-item into view?

Post by admin »

Hmm, that was not planned, but indeed it might be cool. I think about it...

Post Reply