title: $:/core/macros/dumpvariables 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 \procedure DV-SORT-OPTIONS() $:/temp/varSearch/sort \procedure DV-RAW-FILTER-STR() [variables:raw<_tf.dv-type>] \procedure DV-FILTER-STR() [variables<_tf.dv-type>] \procedure DV-FOLDED() $:/temp/varFolded \procedure DV-SEARCH() $:/temp/varSearch \procedure DV-SEARCH-DETAILS() $:/temp/varSearch/details \procedure DV-SEARCH-STATE() $:/state/varSearch/name \procedure DV-EXCLUDE() $:/state/varExclude \procedure DV-TYPE-CONFIG() $:/config/DumpVariables/type-selector \function tf.dv-filterString() [<_tf.dv-sort>match[raw]thenelse] \function tf.dv-formattedVar() [format:variable<_tf.dv-varFormatStr>] \function tf.dv-foldedState() [] [] +[join[/]] \procedure dumpvariables(type sort subfilter:"[[]]" format) \function _tf.dv-varFormatStr() [!is[blank]thenelse[$type$ $name$($params$)]] \function _tf.dv-type() [] \function _tf.dv-sort() []

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

    <$list filter="[subfilter] +[filter]" variable="varname">
  • <$text text=<>/>
    <% if [prefix[\function]] %>
    <$text text={{{ [getvariable[value]] }}}/>
    <% endif %>
    <$text text={{{ [getvariable[]] }}}/>
\end \procedure dv-toggleState() <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}}/> <> \end \procedure dv-toggleInfoState() <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}} /> <$action-setfield $tiddler=<> text={{{ [!is[blank]then] :else[format:variable[$type$ $name$]] }}} /> \end \procedure dv-setDetailsSearchText() <$action-setfield $tiddler=<> text={{{ [format:variable[$type$ $name$]] }}} /> \end \procedure dv-clearStatesButton() <> <$button class="tc-btn-invisible tc-tiny-gap-left" tooltip={{$:/language/Search/Variables/FoldAll}}> <$action-deletetiddler $filter="[prefix]"/> {{$:/core/images/fold-all-button}} \end \procedure dv-clearSearchButton() <$button class="tc-btn-invisible btn-x" tooltip={{$:/language/Search/Variables/Clear/Search}}> <$action-deletetiddler $tiddler=<>/> <$action-sendmessage $message="tm-focus-selector" $param="input.x-inp"/> {{$:/core/images/close-button}} \end \procedure dv-clearExcludeButton() <$button class="tc-btn-invisible btn-yy" tooltip={{$:/language/Search/Variables/Clear/Exclude}}> <$action-deletetiddler $tiddler=<>/> <$action-sendmessage $message="tm-focus-selector" $param="input.y-inp"/> {{$:/core/images/close-button}} \end \procedure dv-expandAllStatesButton() <> <$button class="tc-btn-invisible" tooltip={{$:/language/Search/Variables/ExpandAll}}> <$action-setfield $tiddler=<> text={{{ [get[text]] +[toggle[yes],[no]] }}} /> <$list filter="[subfilter] +[search::some] +[filter]" variable="varname" > <$action-setfield $tiddler=<> text="yes"/> {{$:/core/images/unfold-all-button}} \end \procedure dv-info()
<$list filter="[all[tiddlers+shadows]] :filter[search:text,tags:words] -[[$:/config/OriginalTiddlerPaths]] -[[$:/HistoryList]] -[[$:/StoryList]] -[[$:/core]] :filter[!type[application/javascript]] :filter[!prefix[$:/temp/]] :filter[!prefix[$:/state/]] :filter[!plugin-type[plugin]]" > <$link class="tc-small-gap-left"/>
\end \function tf.dv-tmpTypeOptions() [] [] +[join[/]] \function tf.dv-tmpSortOptions() [] [] +[join[/]] \function tf.dv-searchText() [] [] +[join[/]] \function tf.dv-getSearchText() [get[text]] \function tf.dv-excludeText() [] [] +[join[/]] \function tf.dv-getExcludeText() [get[text]] \function tf.dv-detailsSearch() [] [] [] +[join[/]] \function tf.dv-getDetailsSearchText() [get[text]] \function tf.dv-varState() [] [] [] +[join[/]] \function tf.dv-toggleInfoState() [] [] +[join[/]] \procedure search-variables(type sort subfilter:"[[]]" format) \function _tf.dv-varFormatStr() [!is[blank]thenelse[$type$ $name$($params$)]] \function _tf.dv-type() [!is[blank]then] :else[get[text]] \function _tf.dv-sort() [!is[blank]then] :else[get[text]] :else[[alphabetical]] <>

<$text text=`${ [subfilter] +[search::some] +[filter] +[!filter] +[count[]] }$` /> <> <% if [split[]count[]compare::gt[4]] %> <$text text=`subfilter: $(subfilter)$`/> <%endif%>

<$list filter="[subfilter] +[search::some] +[filter] +[!filter]" 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=<>/> <% if [prefix[\function]] %> <$text text={{{ [format:variable[$firstLine$]] }}}/> <% endif %> <% if [get[text]match[yes]] %> <$button actions=<> class="tc-btn-details tc-btn-invisible tc-small-gap-left" > <% if [get[text]match[yes]] %> {{$:/core/images/up-arrow}} <% else %> {{$:/core/images/advanced-search-button}} <% endif %>
<% if [get[text]match[yes]] %>
<> <$edit-text tiddler=<> tag=input class="tc-fluid-input tc-small-gap-left"/> <$button actions=<> class="tc-btn-invisible tc-tiny-gap-left" tooltip={{$:/language/Search/Variables/Info/Reset}} > {{$:/core/images/refresh-button}}
<> <% endif %> <% if [prefix[\function]] %> <$codeblock code={{{ [getvariable[value]] }}}/> <% endif %>
<$text text={{{ [getvariable[]] }}}/>
<% endif %>
\end \procedure dv-search-input-box() <$text text={{$:/language/Search/Variables/Filter}}/> <$edit-text tiddler=<> tag=input class="txt-input x-inp" placeholder={{$:/language/Search/Variables/Filter/Hint}} focus="yes" /> <> \end \procedure dv-exclude-input-box() <$text text={{$:/language/Search/Variables/Exclude}}/> <$edit-text tiddler=<> tag=input class="txt-input y-inp" placeholder={{$:/language/Search/Variables/Exclude/Hint}} /> <> <% if [!is[blank]] %> <> <% endif %> \end \function tf.dv-opt-class() "c" [