I am using a simpler solution to display the last tiddler above the page controls in the sidebar,
last-tiddler.json (378 Bytes)
\define title-string() "title": "
\define end-title() "
<$link to={{{ [{$:/HistoryList}split<title-string>splitbefore<end-title>removesuffix<end-title>reverse[]is[tiddler]nth[2]] }}}/>
But it has the same “Problem” you are experiencing, using the control panel settings button is not triggering an update of the history.
This has lead me to realised that this is because buttons that open tiddlers do so outside the list or navigator widget that normally happens.
I think the answer may lie in
- using the MessageCatcherWidget to trap navigation events triggered by page controls or wrapping the page controls in $:/core/ui/PageTemplate/pagecontrols
- A quick addition of
story="$:/StoryList" history="$:/HistoryList"
to that list did not work.
- A quick addition of
Further research needed but this almost deserves an issue raised in GitHub for enhancement in future versions of tiddlywiki.
- I observe lists inside the sidebar tabs do make use of the history (unlike buttons), this is using the tabs macro ## $:/core/macros/tabs
- I also note the use of
history=<<tv-history-list>> storyview="pop"
inside the side bar open tab $:/core/ui/SideBar/Open should we somehow do this with the page controls or must we do it in each button that opens a tiddler?