mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-16 23:04:50 +00:00
63b00fd0f8
Clicking on the advanced search ellipsis when there is a search string will open the advanced search tiddler, and copy the current search term to it. Thanks to @Spangenhelm for the idea.
31 lines
1.3 KiB
Plaintext
31 lines
1.3 KiB
Plaintext
title: $:/core/ui/SideBarLists
|
|
|
|
<div class="tc-sidebar-lists">
|
|
|
|
<div class="tc-search">
|
|
<$edit-text tiddler="$:/temp/search" type="search" tag="input"/>
|
|
<$reveal state="$:/temp/search" type="nomatch" text="">
|
|
<$linkcatcher to="$:/temp/search">
|
|
<$link to="" class="tc-btn-invisible">{{$:/core/images/close-button}}</$link>
|
|
</$linkcatcher> <$button tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible"><$action-setfield $tiddler="$:/temp/advancedsearch" text={{$:/temp/search}}/><$action-setfield $tiddler="$:/temp/search" text=""/><$action-navigate $to="$:/AdvancedSearch"/>…</$button>
|
|
</$reveal>
|
|
<$reveal state="$:/temp/search" type="match" text=""> <$link to="$:/AdvancedSearch" tooltip={{$:/language/Buttons/AdvancedSearch/Hint}} aria-label={{$:/language/Buttons/AdvancedSearch/Caption}} class="tc-btn-invisible">…</$link>
|
|
</$reveal>
|
|
</div>
|
|
|
|
<$reveal state="$:/temp/search" type="nomatch" text="">
|
|
|
|
<$set name="searchTiddler" value="$:/temp/search">
|
|
{{$:/core/ui/SearchResults}}
|
|
</$set>
|
|
|
|
</$reveal>
|
|
|
|
<$reveal state="$:/temp/search" type="match" text="">
|
|
|
|
<<tabs "[all[shadows+tiddlers]tag[$:/tags/SideBar]!has[draft.of]]" "$:/core/ui/SideBar/Open" "$:/state/tab/sidebar">>
|
|
|
|
</$reveal>
|
|
|
|
</div>
|