1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-02 14:29:55 +00:00

add keyboard handling to AdvancedSearch Variables tab

This commit is contained in:
pmario 2024-04-29 19:50:32 +02:00
parent d1439c977b
commit 7ac47b646b
4 changed files with 28 additions and 14 deletions

View File

@ -0,0 +1,27 @@
caption: {{$:/language/Search/Variables/Caption}}
created: 20240215233810357
list-before: $:/core/ui/AdvancedSearch/Filter
modified: 20240429173634149
tags: $:/tags/AdvancedSearch
title: $:/core/ui/AdvancedSearch/Variables
type: text/vnd.tiddlywiki
\define set-next-input-tab(beforeafter:"after")
<!-- TODO move stateTitle to field -->
<$macrocall $name="change-input-tab"
stateTitle="$:/state/tab--1498284803"
tag="$:/tags/AdvancedSearch"
beforeafter="$beforeafter$"
defaultState="$:/core/ui/AdvancedSearch/System"
actions="<$action-setfield $tiddler='$:/state/advancedsearch/currentTab' text=<<nextTab>>/>"/>
\end
{{$:/language/Search/Variables/Hint}}
<div class="tc-search tc-advanced-search">
<$keyboard key="((input-tab-right))" actions=<<set-next-input-tab>>>
<$keyboard key="((input-tab-left))" actions=<<set-next-input-tab "before">>>
<<search-variables>>
</$keyboard>
</$keyboard>
</div>

View File

@ -162,7 +162,7 @@ tags: $:/tags/Global
+[count[]] }$`
/> <<lingo Matches>></p>
<$list filter="[subfilter<tf.dv-filterString>]
<$list filter="[subfilter<tf.dv-filterString>]
+[search::some<tf.dv-getSearchText>]
+[filter<subfilter>]
+[!filter<tf.dv-getExcludeText>]"

View File

@ -1,13 +0,0 @@
caption: {{$:/language/Search/Variables/Caption}}
created: 20240215233810357
modified: 20240216005108246
tags: $:/tags/AdvancedSearch
list-before: $:/core/ui/AdvancedSearch/Filter
title: $:/core/ui/AdvancedSearch/Variables
type: text/vnd.tiddlywiki
{{$:/language/Search/Variables/Hint}}
<div class="tc-search tc-advanced-search">
<<search-variables>>
</div>