Feedback invited
Expecting people to download + install, which often also means that one first has to go get an empty TW, surely diminishes the number of people trying it out. With that said; thank you for creating and sharing stuff!!
\define show-sbartabs()
<$action-setfield $tiddler="$:/state/systabshide" text="unlock" />
<$action-setfield $tiddler="$:/core/ui/SideBar/Tools" tags="$:/tags/SideBar" />
<$action-setfield $tiddler="$:/core/ui/SideBar/More" tags="$:/tags/SideBar" />
<$action-setfield $tiddler="z# utility side tab" tags="$:/tags/SideBar" />
<$action-setfield $tiddler="z Odd Stuff" tags="$:/tags/SideBar" />
\end
\define hide-sbartabs()
<$action-setfield $tiddler="$:/state/systabshide" text="lock" />
<$action-setfield $tiddler="$:/core/ui/SideBar/Tools" tags="" />
<$action-setfield $tiddler="$:/core/ui/SideBar/More" tags="" />
<$action-setfield $tiddler="z# utility side tab" tags="" />
<$action-setfield $tiddler="z Odd Stuff" tags="" />
\end
<$reveal type="nomatch" state="$:/state/systabshide" text="unlock">
<$button actions=<<show-sbartabs>> class=<<tv-config-toolbar-class>> tooltip="Show system tabs">
<$list filter="[<tv-config-toolbar-icons>prefix[yes]]">
<span class="svgcolred">{{$:/core/images/locked-padlock}}</span>
</$list>
<$list filter="[<tv-config-toolbar-text>prefix[yes]]">
<span class="tc-btn-text"><$text text="hide/reveal tabs"/></span>
</$list>
</$button>
</$reveal>
<$reveal type="match" state="$:/state/systabshide" text="unlock">
<$button actions=<<hide-sbartabs>> class=<<tv-config-toolbar-class>> tooltip="Hide system tabs">
{{$:/core/images/unlocked-padlock}}
</$button>
</$reveal>
That has some degree of control, over what's presented. For me the objective was to hide them all on large wikis just for performance.
I will try yours.
Thanks for sharing. Did you look inside my button to see how its designed. With a view to clone and reuse. You could make one for each tag as you did.
Actualy I made a system in my key wiki to allow any tab to me move onto the side bar, back in a tab and hide it as well.
I wonder if there is a best solution or just different ones. There are so many ways do do things in tw.
Regards
Tony
I will take what you say on board.
I find that last step a little frustrating. I want to automate that step but don't like single purpose wikis, and empty is too vanilla. Clearly I must do something. Since I may share a lot of buttons I will want a single site to publish buttons.
Since it is a non plugin json you can drop it on tiddlywiki.com to test.
For experiments I down load empty to a scratch folder and drop things on that. Sometimes I download all tiddlywiki.com if I want a lot of content. I Do not think your way, because my own work flow is different.
However I do want them accessible.
thanks for the feedback
Ps this buttons not rocket science but look at its design. It took my 5 mins from my button factory.
Regards
Tony
don't like single purpose wikis, and empty is too vanilla.
Interesting link also connected within https://groups.google.com/forum/m/#!topic/tiddlywiki/21BnNYG30eM
I think we are all seeing a new breakthrough arriving.
Rather than using empty like Jeremy suggest perhaps a demo wiki designed to present the item being demoed with instructions source and config notes all in a virtual wiki. Never create another demo wiki just provide a link or bookmarklet with the tiddlers to be the demo in it.
Tony
Tony
<$checkbox tiddler="$:/core/ui/SideBarSegments/tabs" tag="$:/tags/SideBarSegment"> Sidebar tabs</$checkbox>