Page 1 of 1
Minitree for corresponding Tabset?
Posted: 16 Jan 2012 18:01
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".
Re: Minitree for corresponding Tabset?
Posted: 16 Jan 2012 18:12
by admin
Keep this wish warm and bump me later.

Re: Minitree for corresponding Tabset?
Posted: 16 Jan 2012 18:48
by serendipity
admin wrote:Keep this wish warm and bump me later.

Sure, I will.
Re: Minitree for corresponding Tabset?
Posted: 16 Jan 2012 19:43
by admin
In v10.70.0211 you do this:

Re: Minitree for corresponding Tabset?
Posted: 16 Jan 2012 19:50
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...

Re: Minitree for corresponding Tabset?
Posted: 16 Jan 2012 20:01
by admin
LOL, thanks!
Re: Minitree for corresponding Tabset?
Posted: 17 Jan 2012 00:20
by serendipity
admin wrote:In v10.70.0211 you do this:

Thanks! that will make it easier.
But I'll still bump later for the non-scripting part.
Re: Minitree for corresponding Tabset?
Posted: 17 Jan 2012 08:20
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.
Re: Minitree for corresponding Tabset?
Posted: 17 Jan 2012 16:52
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!
Re: Minitree for corresponding Tabset?
Posted: 17 Jan 2012 17:18
by eil
the new appearance of this feature makes it rather useful, thanks Don!.

Re: Minitree for corresponding Tabset?
Posted: 18 Jan 2012 17:17
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!

Re: Minitree for corresponding Tabset?
Posted: 18 Jan 2012 20:19
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!

This should work as well:
Code: Select all
//Choose tabset and load its minitree
tabset();
loadtree , 3;
Re: Minitree for corresponding Tabset?
Posted: 18 Jan 2012 21:41
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!

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!