Limiting Number of Tiddlers Listed in Recent Tab

125 views
Skip to first unread message

Dan Hoffman

unread,
Feb 25, 2021, 5:38:55 PM2/25/21
to TiddlyWiki
Hi All,

I'm relatively new to the TW universe. I'm a long-time Evernote user looking for an alternative. The more I learn about TW, the more I recognize its power and flexibility. I'm currently using TiddleDesktop (0.0.14) with a single file wiki.    

One of the things I'd like to do is limit the number of tiddlers listed in my Recent's tab. To do this, I believe I should edit the macro in $:/core/ui/SideBar/Recent, which shows the following:

<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}}/>
  
If this is correct, how would I alter this to list (for example) the ten most recently edited tiddlers only without the date headings? 

Thank you in advance for this community and any advice someone might be able to provide. 

Dan



 

  

Mat

unread,
Feb 25, 2021, 5:53:39 PM2/25/21
to TiddlyWiki
In the docs I note there's a subfilter attribute to the timeline macro. So you could see if the following works:

<$macrocall $name="timeline" format={{$:/language/RecentChanges/DateFormat}} subfilter="limit[10]"/>

Now you said you alsow want it without the date headings... but then you shouldn probably not use the timeline macro at all. You will get the ten latest tiddlers e.g like so:

<$list filter="""[all[tiddlers]sort[modified]limit[10]]""">

</$list>

Yes, the empty line should be there. And I didn't test this so it might be !sort instead.

<:-)

Dan Hoffman

unread,
Feb 25, 2021, 5:58:53 PM2/25/21
to TiddlyWiki
Thank you, Mat. Your answer helps me better understand the subfilter attribute as well as how to control/limit lists. Super helpful! 

scot

unread,
Feb 26, 2021, 4:51:00 AM2/26/21
to TiddlyWiki
This may help. not quite what your asking for but similar.
Scot

Jeremy Ruston

unread,
Feb 26, 2021, 5:07:20 AM2/26/21
to TiddlyWiki Group
Just to note that the timeline macro includes a “limit” parameter which can be used to control the maximum number of entries shown:

<<timeline limit:30 subfilter:"tag[Definitions]" format:"DD/MM/YYYY">>


The timeline macro doesn’t include a way to hide the date headings. Generally in such cases one would use the link-links macro:

<<list-links filter:"[!is[system]!is[draft]!sort[modified]limit[10]]”>>

Best wishes

Jeremy.


-- 
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 tiddlywiki+...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/4eddabdc-ca5c-4012-8132-fa6c82dc7cccn%40googlegroups.com.

Eskha

unread,
Feb 26, 2021, 8:55:06 AM2/26/21
to TiddlyWiki
Hello Dan,

Another option that I found useful for limiting the number of tiddlers in the recent tab is to call  the timeline macro with the following:

subfilter: "days[-7]"

(To limit the list to tiddlers edited during the last week).

BR

Eskha

Dan Hoffman

unread,
Feb 27, 2021, 3:37:02 PM2/27/21
to TiddlyWiki
So many great suggestions here. I'm learning. 
Reply all
Reply to author
Forward
0 new messages