From 2c9612275414a84717e4f6b7d4d3c701570aa696 Mon Sep 17 00:00:00 2001 From: pmario Date: Wed, 1 May 2024 13:45:23 +0200 Subject: [PATCH] add subfilter info after x matches to search-variables --- core/wiki/macros/dumpvariables.tid | 7 ++++++- .../macros/examples/search-variables Macro (Examples).tid | 6 +++++- 2 files changed, 11 insertions(+), 2 deletions(-) diff --git a/core/wiki/macros/dumpvariables.tid b/core/wiki/macros/dumpvariables.tid index 3500f0930..61b61ad0f 100644 --- a/core/wiki/macros/dumpvariables.tid +++ b/core/wiki/macros/dumpvariables.tid @@ -166,7 +166,12 @@ tags: $:/tags/Global +[filter] +[!filter] +[count[]] }$` - /> <>

+ /> + <> + <% if [split[]count[]compare::gt[4]] %> + <$text text=`subfilter: $(subfilter)$`/> + <%endif%> +

<$list filter="[subfilter] diff --git a/editions/tw5.com/tiddlers/macros/examples/search-variables Macro (Examples).tid b/editions/tw5.com/tiddlers/macros/examples/search-variables Macro (Examples).tid index 07b699a6f..eb6262c2c 100644 --- a/editions/tw5.com/tiddlers/macros/examples/search-variables Macro (Examples).tid +++ b/editions/tw5.com/tiddlers/macros/examples/search-variables Macro (Examples).tid @@ -1,5 +1,5 @@ created: 20240427121446051 -modified: 20240429205843171 +modified: 20240501113433319 title: search-variables Macro (Examples) type: text/vnd.tiddlywiki @@ -25,5 +25,9 @@ eg="""
<$let EXAMPLE="123" > <$macrocall $name=".example" n="4" eg="""
<>
"""/> +<$macrocall $name=".example" n="5" +eg="""
<>
"""/> +<$macrocall $name=".example" n="6" +eg="""
<>
"""/>