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 \define DV-TMP-EXCLUDE() $:/state/varExclude \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() | {{$:/language/Search/Variables/FoldAll}} <$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-clearExcludeButton() <$button class="tc-btn-invisible"> <$action-deletetiddler $tiddler=<>/> {{$:/core/images/close-button}} \end \procedure dv-expandAllStatesButton() | {{$:/language/Search/Variables/ExpandAll}} <$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-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-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 [get[text]match[yes]] %> <> <% else %> <> <% endif %>
<% if [!match[$:/AdvancedSearch]] %> <%if [!is[blank]] %>sort:<<_tf.dv-sort>><%endif%> <%if [!is[blank]] %>type:<<_tf.dv-type>><%endif%> <% endif %> <$text text={{$:/language/Search/Variables/Filter}}/> <$edit-text tiddler=<> tag=input class="tc-tiny-gap-left" placeholder={{$:/language/Search/Variables/Filter/Hint}}/> <>
<$text text={{$:/language/Search/Variables/Exclude}}/> <$edit-text tiddler=<> tag=input class="tc-tiny-gap" placeholder={{$:/language/Search/Variables/Exclude/Hint}}/> <> <% if [!is[blank]] %> <> <% 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-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]] %>
{{$:/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 \procedure lc-actionsXX() <$action-setfield $tiddler="$:/temp/advancedsearch" text=<>/> <$action-setfield $tiddler="$:/temp/advancedsearch/input" text=<>/> <$action-setfield $tiddler="$:/temp/advancedsearch/refresh" text="yes"/> <$action-sendmessage $message="tm-focus-selector" $param=".tc-advanced-search input"/> \end \procedure lc-actions() <$action-setfield $tiddler=<> text=<>/> \end \procedure addVariableFilter() <$action-sendmessage $message="tm-new-tiddler" tags="$:/tags/Variables/Exclude/Snippet" description={{$:/language/Search/Variables/Exclude/Description}} text=<> /> <$action-deletetiddler $tiddler=<> /> \end \procedure addNewVariableFilter()
<$button tag="a" actions=<> class="tc-tiddlylink"> <$text text={{$:/language/Search/Variables/Exclude/Save}}/> \end \procedure variablesMorePopup() <$button popup=<> class="tc-btn-invisible"> {{$:/core/images/down-arrow}} <$reveal state=<> type="popup" position="below"> <$let name="tv-show-missing-links" value="yes"> <$linkcatcher actions=<> >
<$macrocall $name="list-tagged-draggable" tag="$:/tags/Variables/Exclude/Snippet" subFilter="!is[draft]" itemTemplate="$:/core/ui/AdvancedSearch/Variables/ItemTemplate" /> <>
\end