[TW5] How to link to the sidebar? [Resolved]

105 views
Skip to first unread message

Hegart Dmishiv

unread,
Jan 12, 2016, 7:11:34 PM1/12/16
to tiddl...@googlegroups.com
As part of my TiddlyWiki use case, I have tiddlers that document the maintenance of my TiddlyWiki instance itself. For example, I often have a task-type tiddler which lists maintenance I intend to do on my wiki, such as colouring the Tags according to my colour scheme, or checking the lists of Missing or Orphaned tiddlers. I can reach these reports by clicking manually on the sidebar, then clicking "More", then selecting the report to run, such as "Missing".

What I'd like to do is to be able to link directly from my task tiddler to the report, so that it opens in the sidebar when I click the link in my maintenance task tiddler. Is this possible?

Tobias Beer

unread,
Jan 12, 2016, 7:19:23 PM1/12/16
to TiddlyWiki
Hi Hegart,
 
What I'd like to do is to be able to link directly from my task tiddler to the report, so that it opens in the sidebar when I click the link in my maintenance task tiddler. Is this possible?

I don't think it is (easily) doable... but what's so important about the sidebar and what's so bad about looking at a tiddler... as a tiddler?

Best wishes,

Tobias.

Hegart Dmishiv

unread,
Jan 12, 2016, 7:32:16 PM1/12/16
to TiddlyWiki
Hi Tobias,

what's so important about the sidebar

Now you've got me thinking. The sidebar is where I normally go to get those reports about the state of my wiki. I guess what you're implying is that I could, instead, create my own filtered list to generate such a report myself, rather than relying on the pre-created reports in the sidebar, right? I'm still not strong on creating filters and lists in TW, and I still tend to rely on my previous MediaWiki experience. I'm used to having wiki maintenance reports available at my fingertips, without having to do any of the coding myself to generate them. I guess I could try recreating the reports myself, in a tiddler. It would give me some more practice with lists and filters. Thanks for the prod.

Eric Shulman

unread,
Jan 12, 2016, 9:51:30 PM1/12/16
to TiddlyWiki
On Tuesday, January 12, 2016 at 4:11:34 PM UTC-8, Hegart Dmishiv wrote:
As part of my TiddlyWiki use case, I have tiddlers that document the maintenance of my TiddlyWiki instance itself. For example, I often have a task-type tiddler which lists maintenance I intend to do on my wiki, such as colouring the Tags according to my colour scheme, or checking the lists of Missing or Orphaned tiddlers. I can reach these reports by clicking manually on the sidebar, then clicking "More", then selecting the report to run, such as "Missing".

What I'd like to do is to be able to link directly from my task tiddler to the report, so that it opens in the sidebar when I click the link in my maintenance task tiddler. Is this possible?

The currently selected tab in the sidebar is stored in
   $:/state/tab/sidebar--1835078512
and, when the more tab is selected, this tiddler has a value of
   $:/core/ui/SideBar/More

Similarly, the currently selected tab in the *more* sidebar is stored in
   $:/state/tab/moresidebar-401116514
and, when the "missing" tab is selected, it has a value of
   $:/core/ui/MoreSideBar/Missing

To create a "link" that automatically opens this tab, you need to use a <$button> widget that sets these tiddler values accordingly, like this:
<$button> open "Missing" tab
   <$action-setfield $tiddler="$:/state/tab/sidebar--1835078512" text="$:/core/ui/SideBar/More">
   <$action-setfield $tiddler="$:/state/tab/moresidebar-401116514" text="$:/core/ui/MoreSideBar/Missing">
</$button>

Note: I'm not sure if those "magic numbers" in the tiddler titles will be different in your document.  To get the right numbers, just look for the "$:/state/tab/" tiddlers in the More>System tab.

That should do it.

enjoy,
-e






 

Tobias Beer

unread,
Jan 12, 2016, 9:57:51 PM1/12/16
to TiddlyWiki
Hi Hegart,
 
I guess I could try recreating the reports myself, in a tiddler. It would give me some more practice with lists and filters. Thanks for the prod.

That's definitely a rewarding exercise and it won't take you long to arrive at your desired solution(s). Not that I'm saying "don't read the docs" but you know you'll get answers around here.

Anyhow, one powerful approach to get the right tiddlers quickly at your fingertips: use exotic prefixes, e.g. :missing, :archive, :whatever... then go to the search box and enter nothing but :. The one thing I am missing the most is that I can just hit the down key, select the desired entry, hit enter and see it open. Something like what GotoPlugin did in TW2.

For example, go to tbGTD and just enter # into the search bar, then hit the down key. That's what I mean. No fiddly tabs, no scrolling, no nothing. You don't even have to reinvent the wheel, simply transclude the corresponding shadow tiddler... usually they go by the name, so if you use your browser search while in the shadow tab to look for missing, you'll find $:/core/ui/MoreSideBar/Missing ...simply do {{$:/core/ui/MoreSideBar/Missing}} in whichever tiddler is easier for you to find and voila.

Or, create some custom :tools tiddler or whatever... where you list all other things that you want quick access to... and that you know... rather than wade your way through tabs, doing scrolling.

Best wishes,

Tobias.

Hegart Dmishiv

unread,
Jan 12, 2016, 10:34:07 PM1/12/16
to TiddlyWiki
Awesome, thanks Eric and Tobias. The simple answer is using a link such as [[Missing Tiddlers|$:/core/ui/MoreSideBar/Missing]] which links to the core tiddler. I didn't understand most of what you were saying, sorry Tobias, about the "exotic prefixes" bit, but I'm sure to return to this as I learn more.

I now also have three half-created tiddlers with the beginnings of filtered lists to recreate the results of those reports manually, which I can return to later, as well. A great learning exercise for me when I have more time to experiment. For now though, I'll just go with the simple solution. Thanks, both of you.

Tobias Beer

unread,
Jan 13, 2016, 5:55:54 AM1/13/16
to TiddlyWiki
Hi Hegart,

May I ask: How did you manage to change the title of this issue?

Best wishes,

Tobias. 

Hegart Dmishiv

unread,
Jan 13, 2016, 5:07:42 PM1/13/16
to tiddl...@googlegroups.com
Hi Tobias, I read these newsgroups in the browser, at groups.google.com, rather than in my email client, so I edit my posts there. When editing, there is an option to "Edit subject", which I just do on the OP. What I can't work out though, and maybe you can help me with this, is why I can click on the "Mark as complete" checkbox in a thread I haven't created (or haven't even contributed to), but not in my own created threads. In their web UI, Google Groups marks completed discussions with a green symbol in the list. I can't seem to mark my own as completed, so that's why I've been renaming my ones as [Resolved] instead, when appropriate.

Tobias Beer

unread,
Jan 13, 2016, 8:24:36 PM1/13/16
to TiddlyWiki
Hi Hegart,
 
When editing, there is an option to "Edit subject".

Ah, there it is. Never found that one before. Thanks, that helps.
As for ticking things of as completed, I have no clue why you can't do so yourself.
Seems to be the first thing that comes to mind
that the one asking the question says it's answered and not everyone else.

Best wishes,

Tobias. 
Reply all
Reply to author
Forward
0 new messages