Limit the Length of the Recent SideBar Listing

96 views
Skip to first unread message

Captain Packers

unread,
Mar 26, 2021, 12:26:19 PM3/26/21
to TiddlyWiki
Can anyone tell me how to limit the length or number of entries in the Recent SideBar? 

When I drop below the Sidebar breakpoint and the sidebar is between my open tiddlers and the page toolbar I have to scroll forevever to go back and forth. I realize I can just change to a different sidebar view like Open, but there are times I would like to have Recent visible and just shorter.

Thanks

Brian Radspinner

unread,
Mar 26, 2021, 12:58:40 PM3/26/21
to TiddlyWiki
Edit the system tiddler:
$:/core/macros/timeline

Change "limit" in this line:
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")

...to the number of tiddlers you want to display

Eric Shulman

unread,
Mar 26, 2021, 1:07:49 PM3/26/21
to TiddlyWiki
On Friday, March 26, 2021 at 9:58:40 AM UTC-7 Brian Radspinner wrote:
Edit the system tiddler:
$:/core/macros/timeline

Change "limit" in this line:
\define timeline(limit:"100",format:"DDth MMM YYYY",subfilter:"",dateField:"modified")
...to the number of tiddlers you want to display

Rather than changing the default value for the parameter in the timeline macro definition,
you can add the "limit" parameter when invoking the timeline macro in $:/core/ui/SideBar/Recent.

For example, if you want to set the maximum number of tiddlers to display to 50, you can add "limit=50", like this:

<$macrocall $name="timeline" limit=50 format={{$:/language/RecentChanges/DateFormat}}/>

enjoy,
-e

Captain Packers

unread,
Mar 26, 2021, 2:04:36 PM3/26/21
to TiddlyWiki
Fantastic! Thanks all. 
Reply all
Reply to author
Forward
0 new messages