From 4eeaba7231c2ae4b543375adcde950c3124a1631 Mon Sep 17 00:00:00 2001 From: pmario Date: Mon, 29 Apr 2024 16:42:35 +0200 Subject: [PATCH] use lingo-macro when possible --- core/wiki/macros/dumpvariables.tid | 36 +++++++++++++++++------------- 1 file changed, 20 insertions(+), 16 deletions(-) diff --git a/core/wiki/macros/dumpvariables.tid b/core/wiki/macros/dumpvariables.tid index a0d3578ea..40b4a4088 100644 --- a/core/wiki/macros/dumpvariables.tid +++ b/core/wiki/macros/dumpvariables.tid @@ -3,6 +3,8 @@ tags: $:/tags/Global \whitespace trim +\procedure lingo-base() $:/language/Search/Variables/ + \procedure DV-VAR-FILTER-OPTIONS() all fn var proc macro widget \procedure DV-FILTER-OPTIONS() $:/temp/varSearch/options @@ -64,13 +66,12 @@ tags: $:/tags/Global <$action-setfield $tiddler=<> text={{{ [!is[blank]then] :else[format:variable[$type$ $name$($params$)]] }}} -> -<$action-log $$filter="[prefix[tf.]]"/> - +/> + \end \procedure dv-clearStatesButton() -{{$:/language/Search/Variables/FoldAll}} +<> <$button class="tc-btn-invisible tc-tiny-gap-left"> <$action-deletetiddler $filter="[prefix]"/> @@ -79,25 +80,21 @@ tags: $:/tags/Global \end \procedure dv-clearSearchButton() -<$button class="tc-btn-invisible btn-x" - tooltip=`${ [{$:/language/Search/Variables/Clear}] [{$:/language/Search/Variables/Filter}] +[join[ ]] }$` -> +<$button class="tc-btn-invisible btn-x" tooltip={{$:/language/Search/Variables/Clear/Search}}> <$action-deletetiddler $tiddler=<>/> {{$:/core/images/close-button}} \end \procedure dv-clearExcludeButton() -<$button class="tc-btn-invisible btn-yy" - tooltip=`${ [{$:/language/Search/Variables/Clear}] [{$:/language/Search/Variables/Exclude}] +[join[ ]] }$` -> +<$button class="tc-btn-invisible btn-yy" tooltip={{$:/language/Search/Variables/Clear/Exclude}}> <$action-deletetiddler $tiddler=<>/> {{$:/core/images/close-button}} \end \procedure dv-expandAllStatesButton() -{{$:/language/Search/Variables/ExpandAll}} +<> <$button class="tc-btn-invisible"> <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}} @@ -157,6 +154,13 @@ tags: $:/tags/Global <> +

<$text text=`${ [subfilter] + +[search::some] + +[filter] + +[!filter] + +[count[]] }$` +/> <>

+ <$list filter="[subfilter] +[search::some] +[filter] @@ -188,7 +192,7 @@ tags: $:/tags/Global
<% if [get[text]match[yes]] %>
- {{$:/language/Search/Variables/Search/Details}} + <> <$edit-text tiddler=<> tag=input class="tc-fluid-input tc-small-gap-left"/>
<> @@ -246,7 +250,7 @@ tags: $:/tags/Global margin-right: .25em; } -{{$:/language/Search/Variables/Option/Type}} +<> <$list filter="[enlist]" variable="option"> <%if [get[text]match[checkbox]] %> <$checkbox tiddler=<> @@ -273,7 +277,7 @@ tags: $:/tags/Global \procedure dv-sortOptions() - {{$:/language/Search/Variables/Option/Sort}} + <> <$select tiddler=<> default="alphabetical" @@ -364,7 +368,7 @@ tags: $:/tags/Global <$action-sendmessage $message="tm-new-tiddler" tags="$:/tags/Variables/Exclude/Snippet" - description={{$:/language/Search/Variables/Exclude/Description}} + description=<> text=<> /> @@ -376,7 +380,7 @@ tags: $:/tags/Global \procedure dv-addNewVariableFilter() <$button tag="a" actions=<> class="tc-tiddlylink"> - <$text text={{$:/language/Search/Variables/Exclude/Save}}/> + <$text text=<>/> \end