-
Notifications
You must be signed in to change notification settings - Fork 5
/
search-results.tid
41 lines (32 loc) · 1.23 KB
/
search-results.tid
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
title: $:/plugins/hoelzro/full-text-search/search-results
type: text/vnd.tiddlywiki
tags: $:/tags/SearchResults
caption: Full Text Results
\define searchResults()
<$set name="resultCount" value="""<$count filter="[ftsearch{$(searchTiddler)$}ftsfeedback<ftsFeedback>]"/>""">
{{$:/language/Search/Matches}}
</$set>
<$list filter="[ftsearch{$(searchTiddler)$}ftsfeedback<ftsFeedback>]" template="$:/core/ui/ListItemTemplate"/>
\end
<$set name="state" value="$:/temp/FTS-state">
<$reveal type="match" state=<<state>> text="initialized">
<$set name="ftsFeedback" value=<<qualify "$:/temp/fts-feedback">> >
<<searchResults>>
<$list variable="index" filter="[title<ftsFeedback>indexes[]]">
<$set name="message" tiddler=<<ftsFeedback>> index=<<index>> >
<strong style="white-space: normal"><<message>></strong>
</$set>
</$list>
</$set>
</$reveal>
<$reveal type="match" state=<<state>> text="uninitialized">
Search index not initialized; please <$button>
Click here to generate the index
<$fts-action-generate-index />
</$button>
</$reveal>
<$reveal type="match" state=<<state>> text="initializing">
Generating index...
<$hoelzro-progressbar current={{$:/temp/FTS-state!!progressCurrent}} total={{$:/temp/FTS-state!!progressTotal}} />
</$reveal>
</$set>