Minitree for corresponding Tabset?

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Minitree for corresponding Tabset?

Post by serendipity »

Is there an easy way to get Tablist? I know I can use SC tab and loop over all tabs to get it, but there could be an easier solution.
I am looking to do this for loading minitrees quickly for each tabset. So everytime i load a tabset, its associated minitree is loaded.

@Don: is it possible to enhance SC loadtree such that it loads minitree for current tabset?
Even better would be to have a setting like "load corresponding minitree on tabset change".

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

Re: Minitree for corresponding Tabset?

Post by admin »

Keep this wish warm and bump me later. :)

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Minitree for corresponding Tabset?

Post by serendipity »

admin wrote:Keep this wish warm and bump me later. :)
Sure, I will.

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

Re: Minitree for corresponding Tabset?

Post by admin »

In v10.70.0211 you do this:

Code: Select all

loadtree <get tabs |>;
8)

TheQwerty
Posts: 4373
Joined: 03 Aug 2007 22:30

Re: Minitree for corresponding Tabset?

Post by TheQwerty »

Code: Select all

    + SC get got a new named argument "tabs".
      Syntax: getinfo("list_hilitefolder", [delimiter=CRLF])
        [separator]:  String to place between items.
                      Defaults to CRLF (line feed).
        return:       List of highlighted tree folders with their colors
                      in RRGGBB. Format is identical to that used in the
                      INI file.
      Example:
        ::text getinfo("list_hilitefolder");
Someone forgot to edit after pasting... :P

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

Re: Minitree for corresponding Tabset?

Post by admin »

LOL, thanks!

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Minitree for corresponding Tabset?

Post by serendipity »

admin wrote:In v10.70.0211 you do this:

Code: Select all

loadtree <get tabs |>;
8)
Thanks! that will make it easier.
But I'll still bump later for the non-scripting part.

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

Re: Minitree for corresponding Tabset?

Post by admin »

Idea: Don't know about you folks, but I never use the command "Minimize Tree". I will re-write it to generate a Tree matching the active pane's tabset.

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Minitree for corresponding Tabset?

Post by serendipity »

admin wrote:Idea: Don't know about you folks, but I never use the command "Minimize Tree". I will re-write it to generate a Tree matching the active pane's tabset.
When I first tried "minimize tree", i thought it minimizes the tree to reflect all open tabs, instead of just the current tab. I like the new way better too. Thanks!

eil
Posts: 1875
Joined: 13 Jan 2011 19:44

Re: Minitree for corresponding Tabset?

Post by eil »

the new appearance of this feature makes it rather useful, thanks Don!. :)
Win 7 SP1 x64 100% 1366x768|1900x1080

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Minitree for corresponding Tabset?

Post by serendipity »

For those interested just use this little script in your user-button to automatically switch to corresponding minitree on tabset switch.

Code: Select all

//Choose tabset and load its minitree
  tabset();
  loadtree <get tabs_sf |>;
Thanks Don! 8)

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

Re: Minitree for corresponding Tabset?

Post by admin »

serendipity wrote:For those interested just use this little script in your user-button to automatically switch to corresponding minitree on tabset switch.

Code: Select all

//Choose tabset and load its minitree
  tabset();
  loadtree <get tabs_sf |>;
Thanks Don! 8)
This should work as well:

Code: Select all

//Choose tabset and load its minitree
  tabset();
  loadtree , 3;

serendipity
Posts: 3360
Joined: 07 May 2007 18:14
Location: NJ/NY

Re: Minitree for corresponding Tabset?

Post by serendipity »

admin wrote:
serendipity wrote:For those interested just use this little script in your user-button to automatically switch to corresponding minitree on tabset switch.

Code: Select all

//Choose tabset and load its minitree
  tabset();
  loadtree <get tabs_sf |>;
Thanks Don! 8)
This should work as well:

Code: Select all

//Choose tabset and load its minitree
  tabset();
  loadtree , 3;
Oh! I never read beyond <get tabs_sf |> in the change log.
Thanks!

Post Reply