On Tuesday, July 7, 2020 at 9:59:44 PM UTC-7, Saq Imtiaz wrote: > > Lastly, be aware that the history list isn't always updated when a tiddler > is opened. An example is direct manipulation of the storylist via > action-setfield or action-listops widgets. >
The history list is also NOT updated when a tiddler is *closed*. Thus, if you navigate to TiddlerA, it will set the value in $:/HistoryList!!current-tiddler, BUT... if you then close TiddlerA, it will still be set as the value in $:/HistoryList!!current-tiddler. Working with the $:/HistoryList data can be tricky. For example, when you first load a TW document, there is *no history list*, even if there are $:/DefaultTiddlers that are initially displayed. Similarly, if you use a permaview/permalink URL to open the document, then those tiddlers are also not in the $:/HistoryList. However, they ARE in the $:/StoryList Also note that if you are using "zoomin" mode, only one tiddler will be visible, but the $:/StoryList will still have all tiddlers that were opened and not yet closed. Thus, you can't always rely on $:/HistoryList!!current-tiddler to tell you which tiddler is the "active tiddler" (aka, what you called the "focused tiddler") For some interesting bits and pieces, check out: http://tiddlytools.com/InsideTW/#TiddlyTools%2FHistory If you "unlock" the InsideTW document (padlock icon, upper right of window) and then view the "history" (the clock button in the tiddler's toolbar), you will see a popup that lists all the tiddlers in the $:/HistoryList. There's a "double chevron down" button (in the history popup's "titlebar") that will open "diagnostics" that shows the contents of the $:/HistoryList, as well as the current $:/StoryList and the "computed history" (combining both those lists, plus the $:/DefaultTiddlers). This might give you some ideas on how to deal with $:/HistoryList for your purposes. -e -- 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 view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywikidev/ad2ff69a-f07c-456c-8eaa-6cce53b0a5eao%40googlegroups.com.
