mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-01-08 08:20:27 +00:00
move expand / fold all button into seearch header, add texts
This commit is contained in:
parent
62fd440fed
commit
88f4794a61
@ -26,6 +26,8 @@ Variables/Exclude/Hint: Filter eg: [prefix[.]]
|
|||||||
Variables/Exclude/Save: Create / Save Exclude Filter
|
Variables/Exclude/Save: Create / Save Exclude Filter
|
||||||
Variables/Exclude/Show: Show exclude input
|
Variables/Exclude/Show: Show exclude input
|
||||||
Variables/Exclude/Description: EDIT ME - Description is shown in the dropdown
|
Variables/Exclude/Description: EDIT ME - Description is shown in the dropdown
|
||||||
|
Variables/ExpandAll: Expand All:
|
||||||
|
Variables/FoldAll: Fold All:
|
||||||
Variables/Filter: Filter:
|
Variables/Filter: Filter:
|
||||||
Variables/Filter/Hint: Text eg: .attr
|
Variables/Filter/Hint: Text eg: .attr
|
||||||
Variables/Hint: Filter global variables
|
Variables/Hint: Filter global variables
|
||||||
|
@ -52,6 +52,8 @@ tags: $:/tags/Global
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure dv-clearStatesButton()
|
\procedure dv-clearStatesButton()
|
||||||
|
<span class="tc-small-gap-left">|</span>
|
||||||
|
<span class="tc-small-gap">{{$:/language/Search/Variables/FoldAll}}</span>
|
||||||
<$button class="tc-btn-invisible tc-tiny-gap-left">
|
<$button class="tc-btn-invisible tc-tiny-gap-left">
|
||||||
<!-- "search text details" should be preserved -->
|
<!-- "search text details" should be preserved -->
|
||||||
<$action-deletetiddler $filter="[prefix<DV-SEARCH-STATE>]"/>
|
<$action-deletetiddler $filter="[prefix<DV-SEARCH-STATE>]"/>
|
||||||
@ -67,13 +69,15 @@ tags: $:/tags/Global
|
|||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure dv-clearExcludeButton()
|
\procedure dv-clearExcludeButton()
|
||||||
<$button class="tc-btn-invisible tc-tiny-gap-left">
|
<$button class="tc-btn-invisible">
|
||||||
<$action-deletetiddler $tiddler=<<tf.dv-excludeText>>/>
|
<$action-deletetiddler $tiddler=<<tf.dv-excludeText>>/>
|
||||||
{{$:/core/images/close-button}}
|
{{$:/core/images/close-button}}
|
||||||
</$button>
|
</$button>
|
||||||
\end
|
\end
|
||||||
|
|
||||||
\procedure dv-expandAllStatesButton()
|
\procedure dv-expandAllStatesButton()
|
||||||
|
<span class="tc-small-gap-left">|</span>
|
||||||
|
<span class="tc-small-gap">{{$:/language/Search/Variables/ExpandAll}}</span>
|
||||||
<$button class="tc-btn-invisible tc-tiny-gap-left">
|
<$button class="tc-btn-invisible tc-tiny-gap-left">
|
||||||
<$action-setfield $tiddler=<<DV-SEARCH-STATE>> text={{{ [<tf.dv-toggleInfoState>get[text]] +[toggle[yes],[no]] }}}/>
|
<$action-setfield $tiddler=<<DV-SEARCH-STATE>> text={{{ [<tf.dv-toggleInfoState>get[text]] +[toggle[yes],[no]] }}}/>
|
||||||
<!-- only expand currently visible elements -->
|
<!-- only expand currently visible elements -->
|
||||||
@ -160,6 +164,13 @@ tags: $:/tags/Global
|
|||||||
<% if [<sort>is[blank]] %>
|
<% if [<sort>is[blank]] %>
|
||||||
<<dv-sortOptions>>
|
<<dv-sortOptions>>
|
||||||
<% endif %>
|
<% endif %>
|
||||||
|
|
||||||
|
<% if [<DV-SEARCH-STATE>get[text]match[yes]] %>
|
||||||
|
<<dv-clearStatesButton>>
|
||||||
|
<% else %>
|
||||||
|
<<dv-expandAllStatesButton>>
|
||||||
|
<% endif %>
|
||||||
|
|
||||||
<div class="tc-dv-search-input">
|
<div class="tc-dv-search-input">
|
||||||
<% if [<thisTiddler>!match[$:/AdvancedSearch]] %>
|
<% if [<thisTiddler>!match[$:/AdvancedSearch]] %>
|
||||||
<%if [<sort>!is[blank]] %><code class="tc-small-gap">sort:<<_tf.dv-sort>></code><%endif%>
|
<%if [<sort>!is[blank]] %><code class="tc-small-gap">sort:<<_tf.dv-sort>></code><%endif%>
|
||||||
@ -167,11 +178,6 @@ tags: $:/tags/Global
|
|||||||
<% endif %>
|
<% endif %>
|
||||||
<$text text={{$:/language/Search/Variables/Filter}}/>
|
<$text text={{$:/language/Search/Variables/Filter}}/>
|
||||||
<$edit-text tiddler=<<tf.dv-searchText>> tag=input class="tc-tiny-gap-left" placeholder={{$:/language/Search/Variables/Filter/Hint}}/> <<dv-clearSearchButton>>
|
<$edit-text tiddler=<<tf.dv-searchText>> tag=input class="tc-tiny-gap-left" placeholder={{$:/language/Search/Variables/Filter/Hint}}/> <<dv-clearSearchButton>>
|
||||||
<% if [<DV-SEARCH-STATE>get[text]match[yes]] %>
|
|
||||||
<<dv-clearStatesButton>>
|
|
||||||
<% else %>
|
|
||||||
<<dv-expandAllStatesButton>>
|
|
||||||
<% endif %>
|
|
||||||
<br>
|
<br>
|
||||||
<$text text={{$:/language/Search/Variables/Exclude}}/>
|
<$text text={{$:/language/Search/Variables/Exclude}}/>
|
||||||
<$edit-text tiddler=<<tf.dv-excludeText>> tag=input class="tc-tiny-gap" placeholder={{$:/language/Search/Variables/Exclude/Hint}}/>
|
<$edit-text tiddler=<<tf.dv-excludeText>> tag=input class="tc-tiny-gap" placeholder={{$:/language/Search/Variables/Exclude/Hint}}/>
|
||||||
|
Loading…
Reference in New Issue
Block a user