diff --git a/core/wiki/macros/inspect-filter.tid b/core/wiki/macros/inspect-filter.tid index b503d72f7..8181e8ea2 100644 --- a/core/wiki/macros/inspect-filter.tid +++ b/core/wiki/macros/inspect-filter.tid @@ -4,28 +4,42 @@ tags: $:/tags/Macro \whitespace trim \procedure inspect-list(jsonList,prompt,class:"tc-box") -
>> -
- <$text text=<>/> - <$text text={{{ [jsonindexes[]count[]] }}}/> -
-
-
- <$list filter="[jsonindexes[]]" variable="indexList"> - <$list-template> -
- <$text text={{{ [jsonget] }}} /> -
- - <$list-empty> -
- (No items) -
- - +<$let transclusion={{{ [[list-]addsuffix] }}}> +
>> +
+ <$text text=<>/> + <$text text={{{ [jsonindexes[]count[]] }}}/> +
+
+
+ <$let + state=<> + stateMaxRows={{{ [addsuffix[max-rows]] }}} + maxRows={{{ [get[text]!match[]else[50]] }}} + > + <$list filter="[jsonindexes[]limit]" variable="indexList"> + <$list-template> +
+ <$text text={{{ [jsonget] }}} /> +
+ + <$list-empty> +
+ (No items) +
+ + + <%if [jsonindexes[]count[]compare:number:gt] %> + <$button class=""> + <$action-setfield $tiddler=<> text={{{ [add[50]] }}}/> + Expand + + <%endif%> + +
-
+ \end inspect-list \procedure inspect-operator(jsonOperator) @@ -72,7 +86,9 @@ tags: $:/tags/Macro
<$transclude $variable="inspect-list" jsonList={{{ [jsonextract[input]] }}} prompt="Run Input" class="tc-box tc-inspect-input-box"/> <$list filter="[jsonindexes[operators]]" variable="indexOperator"> - <$transclude $variable="inspect-operator" jsonOperator={{{ [jsonextract[operators],] }}}/> + <$let transclusion={{{ [[operator-]addsuffix] }}}> + <$transclude $variable="inspect-operator" jsonOperator={{{ [jsonextract[operators],] }}}/> + <$transclude $variable="inspect-list" jsonList={{{ [jsonextract[output]] }}} prompt="Run Output" class="tc-box tc-inspect-output-box">
@@ -89,7 +105,9 @@ tags: $:/tags/Macro
<$transclude $variable="inspect-list" jsonList={{{ [jsonextract[input]] }}} prompt="Filter Input" class="tc-box tc-inspect-input-box"/> <$list filter="[jsonindexes[runs]]" variable="indexRun"> - <$transclude $variable="inspect-run" jsonRun={{{ [jsonextract[runs],] }}}/> + <$let transclusion={{{ [[run-]addsuffix] }}}> + <$transclude $variable="inspect-run" jsonRun={{{ [jsonextract[runs],] }}}/> + <$transclude $variable="inspect-list" jsonList={{{ [jsonextract[output]] }}} prompt="Filter Output" class="tc-box tc-inspect-output-box"/>