Some quick info
- The $:/tags/SideBarSegment tag
<<tag $:/tags/SideBarSegment>>
is how Items are added to the sideBar
- The Tiddler $:/core/ui/SideBarSegments/tabs is one of these and
- lists the sidebar tabs with
<<tag $:/tags/SideBar>>
- Review $:/core/ui/SideBarSegments/tabs for the code
$:/core/ui/SideBarSegments/tabs
To cut a long story short each time you select a tab it updates explicitState="$:/state/tab/sidebar--595412856"/>
with the tabs tiddlername. Eg open the Open tab and it contains $:/core/ui/SideBar/Open
Now modify the Home and Close all Buttons, perhaps using actions=<<your-actions>>
on the button widget and ;
To force the open tab
\define your-actions()
<$action-setfield $tiddler="$:/state/tab/sidebar--595412856" text="$:/core/ui/SideBar/Open"/>
\end
Or replace the above text with a link to where the default tab is stored, which I could not find at time of writing;
\define your-actions()
<$action-setfield $tiddler="$:/state/tab/sidebar--595412856" text={{default tab tiddler}}/>
\end