Is it possible to put the sidebar buttons at the top?

922 views
Skip to first unread message

j3d1H

unread,
May 24, 2017, 10:41:35 AM5/24/17
to tiddl...@googlegroups.com
I'm not sure this can be done, but is there a plugin or something I can change to make a scrolling top bar that has the sidebar buttons on it? Like, the save button, the full-screen button, control panel button, all of those would be on the top, and they scroll with me as I scroll down the story river?

I would also prefer it if the sidebar buttons returned to the sidebar if I open it, and the sidebar is as normal. Thanks in advance for anyone who tries and/or succeeds to help!

Ton Gerner

unread,
May 24, 2017, 12:35:43 PM5/24/17
to TiddlyWiki
Hi,

Not a scrolling but a fixed toolbar, see http://tw5toolbar.tiddlyspot.com/

Cheers,

Ton

Matthew Lauber

unread,
May 24, 2017, 1:40:52 PM5/24/17
to TiddlyWiki
Here you go.  Whatever buttons you show in the sidebar when it's open will show up in the topbar when it's closed.

created: 20170524173725525
modified: 20170524173926916
tags: $:/tags/TopRightBar
title: $:/core/ui/TopBar/menu

\define config-title()
$:/config/PageControlButtons/Visibility/$(listItem)$
\end

<$reveal state="$:/state/sidebar" type="nomatch" text="no">
<$button set="$:/state/sidebar" setTo="no" tooltip={{$:/language/Buttons/HideSideBar/Hint}} aria-label={{$:/language/Buttons/HideSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-right}}</$button>
</$reveal>
<$reveal state="$:/state/sidebar" type="match" text="no">
<$list filter="[all[shadows+tiddlers]tag[$:/tags/PageControls]!has[draft.of]]" variable="listItem">
<$reveal type="nomatch" state=<<config-title>> text="hide">
<$transclude tiddler=<<listItem>> mode="inline"/>
</$reveal>
</$list>
<$button set="$:/state/sidebar" setTo="yes" tooltip={{$:/language/Buttons/ShowSideBar/Hint}} aria-label={{$:/language/Buttons/ShowSideBar/Caption}} class="tc-btn-invisible">{{$:/core/images/chevron-left}}</$button>
</$reveal>

$--core-ui-TopBar-menu.tid

j3d1H

unread,
May 24, 2017, 1:47:41 PM5/24/17
to TiddlyWiki
Thank you, Matthew Lauber! This is exactly what I wanted.

Matthew Lauber

unread,
May 25, 2017, 9:42:54 AM5/25/17
to TiddlyWiki
I've proposed this is a change to the default behavior at github.  https://github.com/Jermolene/TiddlyWiki5/pull/2871


On Wednesday, May 24, 2017 at 1:40:52 PM UTC-4, Matthew Lauber wrote:

@TiddlyTweeter

unread,
May 25, 2017, 10:37:21 AM5/25/17
to tiddl...@googlegroups.com
Ciao Matthew

The minimalism of that solution is really excellent, IMO
. I think it would have great relevance to smartphone usage, in addition to people like me who like screen estate on desktops.

I like the way its done because it reflects the "meaning of the sidebar", rather than be a full-on alternative, if you get what I mean?

The only thing that might be useful to add would be a (optional?) search box?

Best wishes
Josiah

j3d1H

unread,
May 31, 2017, 7:41:56 AM5/31/17
to tiddl...@googlegroups.com
I would say that's a very good idea. A search bar would be nice, but if that's not an option, we can always put the "Advanced search" button on there. I would like it, though, if the entire thing was optional, and you don't have to have the sidebar buttons pop up when the sidebar is closed.

Steven Schneider

unread,
Jun 2, 2017, 9:45:09 AM6/2/17
to TiddlyWiki
Matthew, this is great concept, thanks for implementing it.

I love the concept overall, which is to essentially redraw the page template depending on the sidebar status. 

I would agree the whole thing should be optional, almost like a show tools button on the topbar that toggles the tools, kind of like the sidebar button works for the sidebar.

Another thought: the TopBar could sit out in the right margin, outside the story river (right word?), running down the wiki rather than across the top. That way, it wouldn't be in the story river...?

//steve.

Jed Carty

unread,
Jun 10, 2017, 2:32:45 AM6/10/17
to TiddlyWiki
I haven't been around all that much so I missed this, but I did make the icon menus plugin which is similar to what is being discussed here. It is used on the wiki reference wiki (http://inmysocks.tiddlyspot.com/), the plugin tiddler is here http://inmysocks.tiddlyspot.com/#%24%3A%2Fplugins%2Finmysocks%2FIconMenus

Rahul Kashyap

unread,
Nov 13, 2020, 11:28:11 AM11/13/20
to TiddlyWiki
Hello,

I wanted to ask if there has been any updates on  including search bar and putting the toolbar on the margin by @Matt Lauber  ?
Currently it floats on top of other tiddlers which is distracting. 
I would also be interested in including some sidebar tabs as well when switch happens.

Even if these changes have not been included in TW main branch, I'd like to use them, if any body could kindly provide a solution. 

Thanks in advance, 
-Rahul
Reply all
Reply to author
Forward
0 new messages