(You would have to cklick once more to remove the mark again.)
All the best,
Thomas
Guess a link might be helpful.
As I understand it the current tiddler, or last navigated to will appear at the top of the history list. A tiddler tagged for the view template may be able to query the history list to see if the current tiddler is first in the history list and if so highlight this fact.
Perhaps this could be a way to do as you wish altought the previous solution has other benifits.
Regards
Tony
ClassicStoryView.prototype.navigateTo = function(historyInfo) { var listElementIndex = this.listWidget.findListItem(0,historyInfo.title); if(listElementIndex === undefined) { return; } var listItemWidget = this.listWidget.children[listElementIndex], targetElement = listItemWidget.findFirstDomNode(); // Abandon if the list entry isn't a DOM element (it might be a text node) if(!(targetElement instanceof Element)) { return; } // Scroll the node into view this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});};
ClassicStoryView.prototype.navigateTo = function(historyInfo) { var listElementIndex = this.listWidget.findListItem(0,historyInfo.title); if(listElementIndex === undefined) { return; } var listItemWidget = this.listWidget.children[listElementIndex], targetElement = listItemWidget.findFirstDomNode(); // Abandon if the list entry isn't a DOM element (it might be a text node) if(!(targetElement instanceof Element)) { return; }
$tw.utils.addClass(targetElement,"tc-navigating-classic");
// Scroll the node into view this.listWidget.dispatchEvent({type: "tm-scroll", target: targetElement});
setTimeout(function() { $tw.utils.removeClass(targetElement,"tc-navigating-classic"); },$tw.utils.getAnimationDuration());};
.tc-tiddler-frame.tc-navigating-classic {transition: 0.4s ease;border: 3px solid <<colour primary>>;}
.tc-tiddler-frame.tc-navigating-classic {transition: {{$:/config/AnimationDuration}}ms ease;