Ah okay. I didn't pay much attention to the core tiddler it opened, I just noticed it hadn't opened my A-Z tab and then fixated on that. I was thinking that it was selecting the tab before it had populated the new ones and so it just dropped back to a default. It's not a massive pain but it is annoying.
If it's a bug then hopefully it will get picked up and fixed. Do I need to do anything to raise it? Thanks, Mark. On Thursday, 2 June 2016 02:12:40 UTC+1, RichardWilliamSmith wrote: > > Hi Mark, > > This is not a feature I have previously tried to use and I concur that it > appears to be broken. > > The problem seems to be that the state-tiddler for the sidebar tabs is > saved along with the wiki, which means it always opens with the same tab > open as when saved. The behaviour is not limited to user-created tabs but > also fails to work as expected for the core tabs. > > If you delete the tiddler $:/state/tab/sidebar--1835078512 > <#[email protected]_%24%3A%2Fstate%2Ftab%2Fsidebar--1835078512> > before > saving the wiki, you should observe expected behaviour. I am *not* > suggesting that as a working solution :) > > Presumably the offending tiddler can be excluded from the save process by > modifying a filter somewhere, but for all I know, there may be a good > reason for the current behaviour. Perhaps we should raise a ticket on > github for this unless one of the devs replies here. > > Regards, > Richard > > On Thursday, June 2, 2016 at 3:44:09 AM UTC+10, Mark Armitage wrote: >> >> No that isn't it. >> >> Maybe I didn't explain it properly. >> >> I *CAN* create a tiddler with a button, using the code I posted which >> originated with Eric Shulman. That all works fine and selects the correct >> sidebar. Not sure what you mean about closing the action, the code is fine >> and works. If you mean that there is no </$action-setfield> then that is >> wrong, you don't need that when it is all in the opening definition, it's a >> shorthand. Again, it's Eric's code and it works. >> >> I *CAN* set a *CORE* sidebar tiddler to auto-open when the wiki launches >> using the control panels popup. If I set it to auto-open one of my added >> tabs (Default sidebar tab in the control panel) then it does not work. >> Maybe it hasn't populated those tabs when this option is chosen and so it >> drops back to a core tab. >> >> What I want is when I open my Wiki for the 'A-Z' sidebar tab to be >> selected. I can't see how to do that without some intervention. Yes I can >> press a button in my '<Stop Press>' tiddler and the tab appears, but then I >> could just as easily click on the tab myself instead so it saves no effort. >> I want the wiki to open, open my default tiddler *AND* select the 'A-Z' tab >> in the sidebar all on it's own. >> >> Is this making sense? >> >> >> >> On Wednesday, 1 June 2016 17:06:17 UTC+1, Mark Armitage wrote: >>> >>> >>> <https://lh3.googleusercontent.com/-rmH1YYY77r4/V08HbLVmnRI/AAAAAAAAIWg/agSvoVoV3UwQohTrbJm0hE39zEV8VIEjQCKgB/s1600/Screen%2BShot%2B2016-06-01%2Bat%2B16.39.33.png> >>> >>> >>> >>> <https://lh3.googleusercontent.com/-rmH1YYY77r4/V08HbLVmnRI/AAAAAAAAIWg/agSvoVoV3UwQohTrbJm0hE39zEV8VIEjQCKgB/s1600/Screen%2BShot%2B2016-06-01%2Bat%2B16.39.33.png> >>> My wiki opens a 'Stop Press' tiddler at the start for any notes I might >>> want to leave myself. I also added some tabs to the sidebar (A-Z, ToC and >>> Tasks). In the settings it has an option to pick which sidebar tab is >>> opened when the wiki opens. Unfortunately if I select 'A-Z' in the >>> drop-down then when I open my wiki it ignores it and stays on one of the >>> core sidebars. >>> >>> I have found one of Eric's bits about selecting a sidebar tab via code: >>> >>> <$button> open "A-Z" tab >>> <$action-setfield $tiddler="$:/state/tab/sidebar--1835078512" >>> text="Sidebar-Index-AZ"> >>> </$button> >>> >>> and that works fine. But is there a way to automatically have the tab >>> selected? I have a tiddler '<Stop Press>' that opens with the Wiki so I >>> assume t could be done from there, just no idea how to do it. New to TW5 >>> and haven'y used TW2 for many years, so very rusty. >>> >>> TIA, >>> >>> Mark >>> >> -- You received this message because you are subscribed to the Google Groups "TiddlyWiki" 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 https://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/f03741cb-8881-46cc-b789-8d469b1f4a15%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.

