From 0b69e88b2940e5e76ecb54b80442ebfea781182a Mon Sep 17 00:00:00 2001 From: pmario Date: Fri, 16 Feb 2024 21:36:15 +0100 Subject: [PATCH] search-variables -- fix filter using subfiter parameter --- core/wiki/macros/dumpvariables.tid | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/core/wiki/macros/dumpvariables.tid b/core/wiki/macros/dumpvariables.tid index 5db23a919..a4a73a3e3 100644 --- a/core/wiki/macros/dumpvariables.tid +++ b/core/wiki/macros/dumpvariables.tid @@ -16,7 +16,7 @@ tags: $:/tags/Macro \end -\procedure search-variables(subfilter:"[]") +\procedure search-variables(subfilter:"[variables[]]") \procedure search() $:/temp/search/dump \procedure sub-search() $:/temp/search/sub-dump @@ -56,7 +56,6 @@ tags: $:/tags/Macro \end expandAllStatesButton \procedure info() -
<$list filter="[all[tiddlers+shadows]] :filter[search:text,tags:words] :filter[!prefix[$:/temp]] @@ -71,7 +70,6 @@ tags: $:/tags/Macro
\end info - \function getSearchText() [get[text]] \function getSubSearch() [] [] [] +[join[/]] @@ -80,7 +78,7 @@ tags: $:/tags/Macro \function getVarState() [addsuffix] [] +[join[]] \function getToggleInfoState() [addsuffix] -<$text text="Search Variables - "/><%if [!match[$:/AdvancedSearch]]%><><%endif%> +<$text text="Search Variables - "/><%if [!match[$:/AdvancedSearch]]%><><%endif%> <$edit-text tiddler=<> tag=input/> <> <% if [get[text]match[yes]] %> <> @@ -88,7 +86,8 @@ tags: $:/tags/Macro <> <% endif %> -<$list filter="[variables[]] +[search::some] :filter[subfilter]" variable="varname"> + +<$list filter="[variables[]] +[search::some] :and[subfilter]" variable="varname">
<$button actions=<> class="tc-small-gap-left tc-btn-invisible"> <% if [get[text]match[yes]] %>