I've run into an edge case with the SideBar. I'm writing a plugin that reacts to user input (e.g. a button press) when that happens I want it to switch the active sidebar tab (e.g. recent tiddlers). Here is what I found:
1. The SideBar tabs macro doesn't off any addressable buttons. In other words the user interaction is encapsulated in the macros defined in the SideBar tiddlers. 2. The SideBar state is saved in a tiddler. 3. Changing the text of the tiddler to point to a tab tiddler will change the active tab. 4. The file name of the state tiddler ends in a unique hash that was created with $tw.wiki.getStateQualifier 5. The $tw.wiki.search is unable to search for prefixes, regexps, or any globbing. 6. There seems to be no way to discover (from a plugin) the actual tiddler title of the SideBar state tiddler. How can I activate a known SideBar tab (by tiddler title) from a plugin? The actual details of the use case is that I have a plugin that writes output to a known <div> that resides in a SideBar tiddler. When the user presses a button in any content tiddler it updates the SideBar tiddler. This all works. The trouble comes in when the active tab is on say Open or Recent and the output is hidden. When the user then press a content button it updates the SideBar tiddler but the user doesn't know. I want it to auto select the output SideBar tiddler so the user can see the result of their interaction. This makes sense because the button would be something like "calculate and activate tab". The SideBar is the correct place to put this output both layout wise and context wise. I feel strongly that this is the correct approach (attempting to avoid an XY problem here). -- You received this message because you are subscribed to the Google Groups "TiddlyWikiDev" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at http://groups.google.com/group/tiddlywikidev. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/1c346437-29cc-4a37-9c84-88fd878653ac%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
