This repository has been archived by the owner on Oct 6, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
tiddler.tid
100 lines (98 loc) · 4.28 KB
/
tiddler.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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
title: $:/plugins/oflg/fishing-catchfish/ui/ViewTemplate/tiddler
code-body: yes
\whitespace trim
\define CJKV() [\u2E80-\u9FFF]
\define click-excerpt-actions()
<$action-setfield
$tiddler="$:/temp/fishing/excerpt"
text={{{ [<annotationTiddler>get[annotate-text]] }}}
/>
\end
<div
style="position:relative;"
>
<$dynannotate
filter="[all[shadows+tiddlers]!is[draft]has[annotate-text]]"
actions=<<click-excerpt-actions>>
popup=<<qualify "$:/state/popup/excerpt">>
selection="$:/temp/fishing/selection"
selectionPrefix="$:/temp/fishing/selectionPrefix"
selectionSuffix="$:/temp/fishing/selectionSuffix"
selectionPopup=<<qualify "$:/state/popup/selection">>
search={{{ [all[shadows+tiddlers]!tag[!]!<currentTiddler>has[word]get[word]unique[]regexp<CJKV>] [all[shadows+tiddlers]!tag[!]!<currentTiddler>has[word]get[word]unique[]!regexp<CJKV>join[|]addprefix[\b(]addsuffix[)\b]] +[join[|]] }}}
searchMode="regexp"
searchCaseSensitive="no"
searchClass="tc-dynannotation-search-overlay-animated"
searchMinLength={{$:/config/Search/MinLength}}
>
{{||$:/core/ui/ViewTemplate}}
</$dynannotate>
<$let
selectionText={{$:/temp/fishing/selection}}
selectionTrim={{{ [<selectionText>trim[]] }}}
>
<$list
filter="[<selectionTrim>!is[blank]]"
variable="ignore"
>
<$let
selectionLowercase={{{ [{<selectionText>lowercase[]] }}}
selectionTitlecase={{{ [<selectionText>titlecase[]] }}}
selectionUppercase={{{ [<selectionText>uppercase[]] }}}
selectionTrimLowercase={{{ [<selectionTrim>lowercase[]] }}}
selectionTrimTitlecase={{{ [<selectionTrim>titlecase[]] }}}
selectionTrimUppercase={{{ [<selectionTrim>uppercase[]] }}}
selectionPrefix={{$:/temp/fishing/selectionPrefix}}
selectionSuffix={{$:/temp/fishing/selectionSuffix}}
sourceTiddler=<<currentTiddler>>
>
<$reveal
type="popup"
state=<<qualify "$:/state/popup/selection">>
position="belowleft"
updatePopupPosition="yes"
positionAllowNegative="no"
class="tc-popup-keep annotation-wrapper"
>
<div
class="tc-drop-down tc-popup-keep"
style="min-width:0;"
>
<$list
filter="[all[shadows+tiddlers]tag[$:/tags/Annotation]!is[draft]]"
>
<$transclude
tiddler="$:/plugins/oflg/fishing/ui/ViewTemplate/button"
/>
</$list>
</div>
<br/>
<$list
filter="[all[shadows+tiddlers]!is[draft]word<selectionText>] [all[shadows+tiddlers]!is[draft]word<selectionTrim>] [all[shadows+tiddlers]!is[draft]word<selectionLowercase>] [all[shadows+tiddlers]!is[draft]word<selectionTitlecase>] [all[shadows+tiddlers]!is[draft]word<selectionUppercase>] [all[shadows+tiddlers]!is[draft]word<selectionTrimLowercase>] [all[shadows+tiddlers]!is[draft]word<selectionTrimTitlecase>] [all[shadows+tiddlers]!is[draft]word<selectionTrimUppercase>] [all[shadows+tiddlers]!is[draft]annotate-text<selectionText>] -[<currentTiddler>]"
>
{{||$:/core/ui/ViewTemplate}}
</$list>
</$reveal>
</$let>
</$list>
</$let>
<$list
filter="[{$:/temp/fishing/excerpt}!is[blank]]"
variable="excerpt"
>
<$reveal
type="popup"
state=<<qualify "$:/state/popup/excerpt">>
position="belowleft"
updatePopupPosition="yes"
positionAllowNegative="no"
class="tc-popup-keep annotation-wrapper"
>
<$list
filter="[all[shadows+tiddlers]!is[draft]!<currentTiddler>annotate-text<excerpt>]"
>
{{||$:/core/ui/ViewTemplate}}
</$list>
</$reveal>
</$list>
</div>