title: $:/core/macros/dumpvariables tags: $:/tags/Macro \whitespace trim \procedure dumpvariables(subfilter:"[variables[]]") \end \procedure search-variables(subfilter:"[]") \procedure search() $:/temp/search/dump \procedure sub-search() $:/temp/search/sub-dump \procedure state() $:/state/search/var/ \procedure toggleState() <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}}/> \end toggleState \procedure toggleInfoState() <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}}/> <$action-setfield $tiddler=<> text={{{ [!is[blank]then] :else[] }}} /> \end toggleInfoState \procedure clearStatesButton() <$button class="tc-btn-invisible tc-tiny-gap-left"> <$action-deletetiddler $filter="[prefix] [prefix[$:/temp]]"/> {{$:/core/images/fold-all-button}} \end clearStatesButton \procedure clearSearchButton() <$button class="tc-btn-invisible tc-tiny-gap-left"> <$action-deletetiddler $tiddler=<>/> {{$:/core/images/close-button}} \end clearSearchButton \procedure expandAllStatesButton() <$button class="tc-btn-invisible tc-tiny-gap-left"> <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}}/> <$list filter="[variables[]] +[search::some] :filter[subfilter]" variable="varname"> <$action-setfield $tiddler=<> text="yes"/> {{$:/core/images/unfold-all-button}} \end expandAllStatesButton \procedure info()
<$list filter="[all[tiddlers+shadows]] :filter[search:text,tags:words] :filter[!prefix[$:/temp]] :filter[!prefix[$:/state]] -[[$:/config/OriginalTiddlerPaths]] :filter[!type[application/javascript]] -[[$:/core]] :filter[!plugin-type[plugin]]" > <$link class="tc-small-gap-left"/>
\end info \function getSearchText() [get[text]] \function getSubSearch() [] [] [] +[join[/]] \function getSubSearchText() [get[text]] \function getVarState() [addsuffix] [] +[join[]] \function getToggleInfoState() [addsuffix] <$text text="Search Variables - "/><%if [!match[$:/AdvancedSearch]]%><><%endif%> <$edit-text tiddler=<> tag=input/> <> <% if [get[text]match[yes]] %> <> <% else %> <> <% endif %> <$list filter="[variables[]] +[search::some] :filter[subfilter]" variable="varname">
<$button actions=<> class="tc-small-gap-left tc-btn-invisible"> <% if [get[text]match[yes]] %> {{$:/core/images/down-arrow}} <% else %> {{$:/core/images/right-arrow}} <% endif %> <$text text=<>/> <$text text={{{ "#" [getvariable[]length[]] +[join[ ]] }}}/> <% if [get[text]match[yes]] %> <$button actions=<> class="tc-btn-invisible tc-small-gap-left" disabledX={{{[is[blank]then[yes]else[no]] }}}> <% if [get[text]match[yes]] %> {{$:/core/images/down-arrow}} <% else %> {{$:/core/images/right-arrow}} <% endif %> <% if [get[text]match[yes]] %>
Search text, tags: <$edit-text tiddler=<> tag=input class="tc-fluid-input tc-small-gap-left"/>
<> <% endif %> <$codeblock code={{{ [getvariable[]] }}}/> <% endif %>

\end