A Modified Recent Tab (History Tab)

I have something sitting around which isn’t an exact match, but is fairly close; it was adapted from the timeline macro. It might be a good start for you:

title: History
caption: Hist
tags: $:/tags/SideBar

\whitespace trim
<$let subfilter="" dateField="modified" limit=100 format="MMM YYYY">
<div class="tc-timeline">
<$set name="tv-tids" filter=`[!is[system]$(subfilter)$has<dateField>!sort<dateField>limit<limit>]`>
<$list filter=`[enlist<tv-tids>get<dateField>] :map[split[]first[6]join[]addsuffix[0112]] +[unique[]]` variable="date">
<div class="tc-menu-list-item">
<$let month= {{{ [<date>split[]first[6]join[]] }}} >
<$text text={{{ [<date>format:date<format>] }}} />
<$list filter=`[enlist<tv-tids>] :filter[get<dateField>prefix<month>]`>
<div class="tc-menu-list-subitem"><<timeline-link>></div>
</$list>
</$let>
</div>
</$list>
</$set>
</div>
</$let>

This uses modified rather than created, but you can change that in the initial let statement. It also limits to 100 tiddlers, but is also configurable. The biggest difference is that it is not restricted to the current year; that would probably be easy enough to add, but it’s bedtime, and I can’t look into it now.

History.json (822 Bytes)

1 Like

Dear Scott, I must apologize for not getting back earlier. I just had too much to do at work. Thank you so much for providing the code :pray:. I was able to implement it in my wiki and adjust it to my needs and it works fine! For now, the limit by numbers (and not the current year) is also fine and I will have a further look into it in a few months, when my tiddlers list will be much longer.

2 Likes

Not at all. Some of us take weeks or months!

I’m glad this helped.

1 Like