title: $:/core/macros/dumpvariables tags: $:/tags/Global \whitespace trim \define DV-VAR-FILTER-OPTIONS() fn var proc macro widget \define DV-TMP-FILTER-OPTIONS() $:/temp/varSearch/options \define DV-TMP-SORT-OPTIONS() $:/temp/varSearch/sort \define DV-RAW-FILTER-STR() [variables:raw<_tf.dv-type>] \define DV-FILTER-STR() [variables<_tf.dv-type>] \define DV-TMP-SEARCH() $:/temp/varSearch \define DV-TMP-SEARCH-DETAILS() $:/temp/varSearch/details \define DV-SEARCH-STATE() $:/state/varSearch \function tf.dv-filterString() [<_tf.dv-sort>match[raw]thenelse] \function tf.dv-formattedVar() [format:variable<_tf.dv-varFormat>] \procedure dumpvariables(type sort subfilter:"[[]]" format) \function _tf.dv-varFormat() [!is[blank]thenelse[$type$ $name$($params$)]] \function _tf.dv-type() [] \function _tf.dv-sort() []
    <$list filter="[subfilter] +[filter]" variable="varname">
  • <$text text=<>/>
    <% if [prefix[\function]] %> <$codeblock code={{{ [getvariable[value]] }}}/> <% endif %> <$codeblock code={{{ [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$($params$)]] }}} /> \end \procedure dv-clearStatesButton() <$button class="tc-btn-invisible tc-tiny-gap-left"> <$action-deletetiddler $filter="[prefix]"/> {{$:/core/images/fold-all-button}} \end \procedure dv-clearSearchButton() <$button class="tc-btn-invisible tc-tiny-gap-left"> <$action-deletetiddler $tiddler=<>/> {{$:/core/images/close-button}} \end \procedure dv-expandAllStatesButton() <$button class="tc-btn-invisible tc-tiny-gap-left"> <$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 \procedure dv-filterOptions() {{$:/language/Search/Variables/Option/Type}} <$list filter="[enlist]" variable="option"> <$checkbox tiddler=<> listField="text" checked=< \end \procedure dv-sortOptions() {{$:/language/Search/Variables/Option/Sort}} <$select tiddler=<> default="alphabetical" class="tc-tiny-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-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-varFormat() [!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]] <% if [is[blank]] %> <> <% endif %> <% if [is[blank]] %> <> <% endif %>
<% if [!match[$:/AdvancedSearch]] %> <$text text={{$:/language/Search/Variables/Search}}/> <%if [!is[blank]] %>sort:<<_tf.dv-sort>><%endif%> <%if [!is[blank]] %>type:<<_tf.dv-type>><%endif%> <% endif %> <$edit-text tiddler=<> tag=input/> <> <% if [get[text]match[yes]] %> <> <% else %> <> <% endif %>
<$list filter="[subfilter] +[search::some] +[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-invisible tc-small-gap-left"> <% if [get[text]match[yes]] %> {{$:/core/images/down-arrow}} <% else %> {{$:/core/images/right-arrow}} <% endif %> <% if [get[text]match[yes]] %>
{{$:/language/Search/Variables/Search/Details}} <$edit-text tiddler=<> tag=input class="tc-fluid-input tc-small-gap-left"/>
<> <% endif %> <% if [prefix[\function]] %> <$codeblock code={{{ [getvariable[value]] }}}/> <% endif %> <$codeblock code={{{ [getvariable[]] }}}/> <% endif %>
\end